summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-01-16 08:51:39 +0000
committerJim Meyering <jim@meyering.net>1998-01-16 08:51:39 +0000
commit53cfcbd19c5e08093e74b4fc53b5dae369c98fd5 (patch)
treee9ef692e4434f3ceaa01e915a7463d050d12c25c /lib
parent5618133eed355b6e4cfd832adbe074a573567785 (diff)
downloadcoreutils-53cfcbd19c5e08093e74b4fc53b5dae369c98fd5.tar.xz
Make PARAMS-defining conditionals consistent.
Diffstat (limited to 'lib')
-rw-r--r--lib/memcasecmp.h11
-rw-r--r--lib/xstrtod.h13
2 files changed, 13 insertions, 11 deletions
diff --git a/lib/memcasecmp.h b/lib/memcasecmp.h
index 84c2af09e..164dff435 100644
--- a/lib/memcasecmp.h
+++ b/lib/memcasecmp.h
@@ -1,8 +1,9 @@
-#undef PARAMS
-#if defined (__STDC__) && __STDC__
-# define PARAMS(Args) Args
-#else
-# define PARAMS(Args) ()
+#ifndef PARAMS
+# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
+# define PARAMS(Args) Args
+# else
+# define PARAMS(Args) ()
+# endif
#endif
int
diff --git a/lib/xstrtod.h b/lib/xstrtod.h
index b2fffb278..d286d6f55 100644
--- a/lib/xstrtod.h
+++ b/lib/xstrtod.h
@@ -1,12 +1,13 @@
#ifndef XSTRTOD_H
# define XSTRTOD_H 1
-#undef PARAMS
-#if defined (__STDC__) && __STDC__
-# define PARAMS(Args) Args
-#else
-# define PARAMS(Args) ()
-#endif
+# ifndef PARAMS
+# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
+# define PARAMS(Args) Args
+# else
+# define PARAMS(Args) ()
+# endif
+# endif
int
xstrtod PARAMS ((const char *str, const char **ptr, double *result));