Unconditionally declare program_invocation_name and
authorTom Tromey <tromey@cygnus.com>
Fri, 22 May 1998 04:32:12 +0000 (04:32 +0000)
committerTom Tromey <tromey@src.gnome.org>
Fri, 22 May 1998 04:32:12 +0000 (04:32 +0000)
Thu May 21 21:21:12 1998  Tom Tromey  <tromey@cygnus.com>

* gnome-argp.h: Unconditionally declare program_invocation_name
and program_invocation_short_name; some systems define these but
don't declare them.

svn path=/trunk/; revision=222

support/ChangeLog
support/gnome-argp.h

index 8e84e04..3b33b8c 100644 (file)
@@ -1,3 +1,9 @@
+Thu May 21 21:21:12 1998  Tom Tromey  <tromey@cygnus.com>
+
+       * gnome-argp.h: Unconditionally declare program_invocation_name
+       and program_invocation_short_name; some systems define these but
+       don't declare them.
+
 1998-05-20  Raja R Harinath  <harinath@cs.umn.edu>
 
        * Makefile.am (INCLUDES): Define _GNU_SOURCE.
index 3a0c725..e3748b3 100644 (file)
@@ -9,13 +9,10 @@
 extern char *strndup (const char *s, size_t n);
 #endif
 
-#ifndef HAVE_PROGRAM_INVOCATION_SHORT_NAME
+/* Some systems, like Red Hat 4.0, define these but don't declare
+   them.  Hopefully it is safe to always declare them here.  */
 extern char *program_invocation_short_name;
-#endif
-
-#ifndef HAVE_PROGRAM_INVOCATION_NAME
 extern char *program_invocation_name;
-#endif
 
 #define __mempcpy(To,From,Len) (memcpy ((To), (From), (Len)) + (Len))