diff options
author | Tom Tromey <tromey@cygnus.com> | 1998-05-22 04:32:12 +0000 |
---|---|---|
committer | Tom Tromey <tromey@src.gnome.org> | 1998-05-22 04:32:12 +0000 |
commit | 9c12fb6742d459b496636f8bc1504d566db0e3af (patch) | |
tree | f507ad8fc6b3a6920c843fa31e0acef5c7d307a5 /support | |
parent | 58facf235a1b63930bfae1b427782a299f7e804d (diff) | |
download | gnome-common-9c12fb6742d459b496636f8bc1504d566db0e3af.tar.gz |
Unconditionally declare program_invocation_name and
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
Diffstat (limited to 'support')
-rw-r--r-- | support/ChangeLog | 6 | ||||
-rw-r--r-- | support/gnome-argp.h | 7 |
2 files changed, 8 insertions, 5 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index 8e84e04..3b33b8c 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -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. diff --git a/support/gnome-argp.h b/support/gnome-argp.h index 3a0c725..e3748b3 100644 --- a/support/gnome-argp.h +++ b/support/gnome-argp.h @@ -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)) |