summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-03-12 18:06:08 +0000
committerJim Meyering <jim@meyering.net>1995-03-12 18:06:08 +0000
commite71dcd4c81c052c4dd4f9ec5399ee35b49c12d16 (patch)
tree447db4f2641ba5a43180dc167a41cb40c3889275 /lib
parentae50e4b6fcb9819fbe9c79d72124c20f083680b5 (diff)
downloadcoreutils-e71dcd4c81c052c4dd4f9ec5399ee35b49c12d16.tar.xz
Undef __P before defining it.
Diffstat (limited to 'lib')
-rw-r--r--lib/linebuffer.h1
-rw-r--r--lib/long-options.h7
-rw-r--r--lib/xstrtol.h1
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/linebuffer.h b/lib/linebuffer.h
index 265431ad7..5c73951e8 100644
--- a/lib/linebuffer.h
+++ b/lib/linebuffer.h
@@ -24,6 +24,7 @@ struct linebuffer
char *buffer;
};
+#undef __P
#if defined (__STDC__) && __STDC__
#define __P(x) x
#else
diff --git a/lib/long-options.h b/lib/long-options.h
index 220305ce6..986a52d0d 100644
--- a/lib/long-options.h
+++ b/lib/long-options.h
@@ -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,
diff --git a/lib/xstrtol.h b/lib/xstrtol.h
index ff44d6bec..bebeca3b6 100644
--- a/lib/xstrtol.h
+++ b/lib/xstrtol.h
@@ -13,6 +13,7 @@
# define __ZLONG_MAX LONG_MAX
#endif
+#undef __P
#if defined (__STDC__) && __STDC__
#define __P(x) x
#else