summaryrefslogtreecommitdiff
path: root/support/strerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/strerror.c')
-rw-r--r--support/strerror.c11
1 files changed, 8 insertions, 3 deletions
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