summaryrefslogtreecommitdiff
path: root/support/strerror.c
diff options
context:
space:
mode:
authorRaja R Harinath <harinath@src.gnome.org>1998-05-20 00:10:25 +0000
committerRaja R Harinath <harinath@src.gnome.org>1998-05-20 00:10:25 +0000
commit707d733fa2c5c20896e5e8728cc08d7ad5d30cb1 (patch)
treeb9a7c09aa83a5a9d6264a9329c3fd08647da55b8 /support/strerror.c
parent007f73bff18cfa3e3019620096adaa3261e6ec58 (diff)
downloadshared-mime-info-707d733fa2c5c20896e5e8728cc08d7ad5d30cb1.tar.gz
New file. Imported from GNU libiberty.
* strerror.c: New file. Imported from GNU libiberty. svn path=/trunk/; revision=211
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