diff options
author | Jim Meyering <jim@meyering.net> | 1998-01-16 08:51:39 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-01-16 08:51:39 +0000 |
commit | 53cfcbd19c5e08093e74b4fc53b5dae369c98fd5 (patch) | |
tree | e9ef692e4434f3ceaa01e915a7463d050d12c25c /lib | |
parent | 5618133eed355b6e4cfd832adbe074a573567785 (diff) | |
download | coreutils-53cfcbd19c5e08093e74b4fc53b5dae369c98fd5.tar.xz |
Make PARAMS-defining conditionals consistent.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/memcasecmp.h | 11 | ||||
-rw-r--r-- | lib/xstrtod.h | 13 |
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)); |