diff options
Diffstat (limited to 'support')
-rw-r--r-- | support/ChangeLog | 4 | ||||
-rw-r--r-- | support/strerror.c | 11 |
2 files changed, 12 insertions, 3 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index e5da677d..03ffd7b0 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -1,3 +1,7 @@ +1998-05-19 Raja R Harinath <harinath@cs.umn.edu> + + * strerror.c: New file. Imported from GNU libiberty. + 1998-05-19 Martin Baulig <martin@home-of-linux.org> * vsnprintf.c (vsnprintf): Added prototype for systems diff --git a/support/strerror.c b/support/strerror.c index 644cc754..296f19b8 100644 --- a/support/strerror.c +++ b/support/strerror.c @@ -2,11 +2,16 @@ Written by Fred Fish. fnf@cygnus.com This file is in the public domain. --Per Bothner. */ -#include "ansidecl.h" -#include "libiberty.h" - #include "config.h" +#ifndef PARAMS +#if defined (__GNUC__) || __STDC__ || defined __cplusplus +# define PARAMS(args) args +#else +# define PARAMS(args) () +#endif + + #ifdef HAVE_SYS_ERRLIST /* Note that errno.h (not sure what OS) or stdio.h (BSD 4.4, at least) might declare sys_errlist in a way that the compiler might consider |