summaryrefslogtreecommitdiffstats
path: root/gdb/gdb_string.h
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-04-23 19:53:35 +0000
committerJason Molenda <jmolenda@apple.com>1998-04-23 19:53:35 +0000
commit21cbc60c52be1f9658e440322f49c1fb6d33078c (patch)
treef177a8210c9e75a2acf25cdc02b839997760b270 /gdb/gdb_string.h
parentca39bf77b061e85529dbcc924aab350c51780194 (diff)
downloadppe42-binutils-21cbc60c52be1f9658e440322f49c1fb6d33078c.tar.gz
ppe42-binutils-21cbc60c52be1f9658e440322f49c1fb6d33078c.zip
Thu Apr 23 12:52:21 1998 Philippe De Muyter <phdm@macqel.be>
* configure.in (strerror): Check if function must be declared. * acconfig.h (NEED_DECLARATION_STRERROR): New define slot. * gdb_string.h (strerror): Function declaration issued if NEED_DECLARATION_STRERROR. * configure, config.in : Files regenerated.
Diffstat (limited to 'gdb/gdb_string.h')
-rw-r--r--gdb/gdb_string.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/gdb_string.h b/gdb/gdb_string.h
index 6b8fb820f3..7cfef642e9 100644
--- a/gdb/gdb_string.h
+++ b/gdb/gdb_string.h
@@ -45,10 +45,6 @@ extern char *strstr PARAMS ((const char *, const char *)); /* X3.159-1989 4.11.
extern char *strtok PARAMS ((char *, const char *)); /* X3.159-1989 4.11.5.8 */
#endif
-#ifndef strerror
-extern char *strerror PARAMS ((int)); /* X3.159-1989 4.11.6.2 */
-#endif
-
# ifdef HAVE_MEMORY_H
# include <memory.h>
# else
@@ -57,6 +53,12 @@ extern void *memcpy();
extern void *memmove();
extern int memcmp();
# endif
+#endif /* STDC_HEADERS */
+
+#ifdef NEED_DECLARATION_STRERROR
+#ifndef strerror
+extern char *strerror PARAMS ((int)); /* X3.159-1989 4.11.6.2 */
+#endif
#endif
#ifndef strdup
OpenPOWER on IntegriCloud