changeset 26315:e6de8b7b18e0

Restore changes accidentally lost during the "autoupdate" on 2005-12-12.
author Sergey Poznyakoff <gray@gnu.org.ua>
date Tue, 07 Feb 2006 13:35:29 +0000
parents 214a67e51d60
children 794261d94308
files lib/argp-namefrob.h
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/argp-namefrob.h	Mon Feb 06 05:22:04 2006 +0000
+++ b/lib/argp-namefrob.h	Tue Feb 07 13:35:29 2006 +0000
@@ -141,6 +141,20 @@
 # define putchar_unlocked(x) putchar (x)
 # endif
 
+/* GNULIB makes sure both program_invocation_name and
+   program_invocation_short_name are available */
+#ifdef GNULIB_PROGRAM_INVOCATION_NAME
+extern char *program_invocation_name;
+# undef HAVE_DECL_PROGRAM_INVOCATION_NAME
+# define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
+#endif
+
+#ifdef GNULIB_PROGRAM_INVOCATION_SHORT_NAME
+extern char *program_invocation_short_name;
+# undef HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
+# define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
+#endif
+
 #endif /* !_LIBC */
 
 #ifndef __set_errno