diff options
Diffstat (limited to 'lib/xalloc.h')
-rw-r--r-- | lib/xalloc.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/xalloc.h b/lib/xalloc.h index a66226dd3..3f8d77925 100644 --- a/lib/xalloc.h +++ b/lib/xalloc.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 /* Exit value when the requested amount of memory is not available. |