diff options
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)); |