aboutsummaryrefslogtreecommitdiff
path: root/gas/as.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2012-05-11 14:25:30 +0000
committerNick Clifton <nickc@redhat.com>2012-05-11 14:25:30 +0000
commit208a4923edd990535a9bbf73bf39a8609771aec3 (patch)
tree03814f8704619ced31086f6b9e5bd345889fab33 /gas/as.h
parentbde24c0a34fd79fb9ee6c7a355a46917cd866d26 (diff)
downloadgdb-208a4923edd990535a9bbf73bf39a8609771aec3.zip
gdb-208a4923edd990535a9bbf73bf39a8609771aec3.tar.gz
gdb-208a4923edd990535a9bbf73bf39a8609771aec3.tar.bz2
PR binutils/14028
* configure.in: Invoke ACX_HEADER_STRING. * configure: Regenerate. * config.in: Regenerate. * sysdep.h: If STRINGS_WITH_STRING is defined then include both string.h and strings.h.
Diffstat (limited to 'gas/as.h')
-rw-r--r--gas/as.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gas/as.h b/gas/as.h
index 5408e1a..f2214e8 100644
--- a/gas/as.h
+++ b/gas/as.h
@@ -1,6 +1,6 @@
/* as.h - global header file
Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
- 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -42,6 +42,11 @@
/* System include files first... */
#include <stdio.h>
+
+#ifdef STRING_WITH_STRINGS
+#include <string.h>
+#include <strings.h>
+#else
#ifdef HAVE_STRING_H
#include <string.h>
#else
@@ -49,6 +54,8 @@
#include <strings.h>
#endif
#endif
+#endif
+
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif