i386.c: Conditionally include <stdlib.h>, <string.h>, and <strings.h>.
authorMarc Lehmann <pcg@goof.com>
Wed, 11 Feb 1998 23:03:32 +0000 (23:03 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 11 Feb 1998 23:03:32 +0000 (16:03 -0700)
        * i386.c: Conditionally include <stdlib.h>, <string.h>, and
        <strings.h>.

From-SVN: r17864

gcc/ChangeLog
gcc/config/i386/i386.c

index 283653b..1dc02d3 100644 (file)
@@ -1,3 +1,8 @@
+Thu Feb 12 00:04:16 1998  Marc Lehmann <pcg@goof.com>
+
+       * i386.c: Conditionally include <stdlib.h>, <string.h>, and
+       <strings.h>.
+
 Wed Feb 11 11:43:34 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * Makefile.in (WARN_CFLAGS): New variable.
index 796c3f5..75e44c1 100644 (file)
@@ -37,6 +37,18 @@ Boston, MA 02111-1307, USA. */
 #include "function.h"
 #include "recog.h"
 
+#if HAVE_STDLIB_H
+#include <stdlib.h>                                                
+#endif
+
+#ifdef HAVE_STRING_H
+#include <string.h>                                                   
+#else                                                  
+#ifdef HAVE_STRINGS_H
+#include <strings.h>               
+#endif                                                                   
+#endif 
+
 #ifdef EXTRA_CONSTRAINT
 /* If EXTRA_CONSTRAINT is defined, then the 'S'
    constraint in REG_CLASS_FROM_LETTER will no longer work, and various