summaryrefslogtreecommitdiff
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
parent007f73bff18cfa3e3019620096adaa3261e6ec58 (diff)
downloadgnome-common-707d733fa2c5c20896e5e8728cc08d7ad5d30cb1.tar.gz
New file. Imported from GNU libiberty.
* strerror.c: New file. Imported from GNU libiberty. svn path=/trunk/; revision=211
-rw-r--r--support/ChangeLog4
-rw-r--r--support/strerror.c11
2 files changed, 12 insertions, 3 deletions
diff --git a/support/ChangeLog b/support/ChangeLog
index e5da677..03ffd7b 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 644cc75..296f19b 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