aboutsummaryrefslogtreecommitdiff
path: root/gas/as.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-08-07 18:23:08 +0000
committerIan Lance Taylor <ian@airs.com>1996-08-07 18:23:08 +0000
commit5cece5267784495835c2fb2fb4141612d4c3c02b (patch)
treea7d7b04d6fca609aa19a2c99636365f51f327356 /gas/as.h
parent85fe9d3e46ca45f86886f8baf9aa21fa6ec2ece7 (diff)
downloadgdb-5cece5267784495835c2fb2fb4141612d4c3c02b.zip
gdb-5cece5267784495835c2fb2fb4141612d4c3c02b.tar.gz
gdb-5cece5267784495835c2fb2fb4141612d4c3c02b.tar.bz2
Wed Aug 7 14:19:03 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
* configure.in: Make GAS_CHECK_DECL_NEEDED include <string.h> or <strings.h> if they exist. Call GAS_CHECK_DECL_NEEDED on strstr and sbrk. * acconfig.h (NEED_DECLARATION_STRSTR): New macro. (NEED_DECLARATION_SBRK): New macro. * configure, conf.in: Rebuild. * as.h: Only include <strings.h> if HAVE_STRINGS_H. (strstr): Declare if NEED_DECLARATION_STRSTR. * as.c: If HAVE_SBRK and NEED_DECLARATION_SBRK, declare sbrk.
Diffstat (limited to 'gas/as.h')
-rw-r--r--gas/as.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gas/as.h b/gas/as.h
index f796178..66d385c 100644
--- a/gas/as.h
+++ b/gas/as.h
@@ -79,8 +79,10 @@ void *alloca ();
#ifdef HAVE_STRING_H
#include <string.h>
#else
+#ifdef HAVE_STRINGS_H
#include <strings.h>
#endif
+#endif
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
@@ -145,6 +147,9 @@ void *alloca ();
#endif /* !__MWERKS__ */
/* Other stuff from config.h. */
+#ifdef NEED_DECLARATION_STRSTR
+extern char *strstr ();
+#endif
#ifdef NEED_DECLARATION_MALLOC
extern PTR malloc ();
extern PTR realloc ();
@@ -212,11 +217,6 @@ extern PTR bfd_alloc_by_size_t PARAMS ((bfd *abfd, size_t sz));
as_fatal("Case value %ld unexpected at line %d of file \"%s\"\n", \
(long) val, __LINE__, __FILE__); \
}
-
-/* Version 2.1 of Solaris had problems with this declaration, but I
- think that bug has since been fixed. If it causes problems on your
- system, just delete it. */
-extern char *strstr ();
#include "flonum.h"