changeset 20087:a1eac9811e63

Undef __P before defining it.
author Jim Meyering <jim@meyering.net>
date Sun, 12 Mar 1995 18:06:08 +0000
parents becb6054179e
children b3fa7c55c36e
files lib/linebuffer.h lib/long-options.h lib/xstrtol.h
diffstat 3 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lib/linebuffer.h	Sun Mar 12 15:26:36 1995 +0000
+++ b/lib/linebuffer.h	Sun Mar 12 18:06:08 1995 +0000
@@ -24,6 +24,7 @@
   char *buffer;
 };
 
+#undef __P
 #if defined (__STDC__) && __STDC__
 #define	__P(x) x
 #else
--- a/lib/long-options.h	Sun Mar 12 15:26:36 1995 +0000
+++ b/lib/long-options.h	Sun Mar 12 18:06:08 1995 +0000
@@ -1,10 +1,9 @@
-#ifndef __P
-#if defined (__GNUC__) || (defined (__STDC__) && __STDC__)
+#undef __P
+#if defined (__STDC__) && __STDC__
 #define __P(args) args
 #else
 #define __P(args) ()
-#endif  /* GCC.  */
-#endif  /* Not __P.  */
+#endif
 
 void
   parse_long_options __P ((int _argc, char **_argv, const char *_command_name,
--- a/lib/xstrtol.h	Sun Mar 12 15:26:36 1995 +0000
+++ b/lib/xstrtol.h	Sun Mar 12 18:06:08 1995 +0000
@@ -13,6 +13,7 @@
 # define __ZLONG_MAX LONG_MAX
 #endif
 
+#undef __P
 #if defined (__STDC__) && __STDC__
 #define	__P(x) x
 #else