summaryrefslogtreecommitdiff
path: root/lib/xstrtod.h
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/xstrtod.h
parent5618133eed355b6e4cfd832adbe074a573567785 (diff)
downloadcoreutils-53cfcbd19c5e08093e74b4fc53b5dae369c98fd5.tar.xz
Make PARAMS-defining conditionals consistent.
Diffstat (limited to 'lib/xstrtod.h')
-rw-r--r--lib/xstrtod.h13
1 files changed, 7 insertions, 6 deletions
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));