]> gcc.gnu.org Git - gcc.git/commitdiff
mkstemp.c: Include config.h even when not IN_GCC.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Mon, 7 Sep 1998 20:37:13 +0000 (20:37 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Mon, 7 Sep 1998 20:37:13 +0000 (20:37 +0000)
       * mkstemp.c: Include config.h even when not IN_GCC.  Wrap header
       inclusions inside HAVE_*_H macros.  Include ansidecl.h when not
       IN_GCC.
       * vasprintf.c: Include stdarg.h/varargs.h first.
       * vprintf.c: Likewise.

From-SVN: r22314

libiberty/ChangeLog
libiberty/mkstemp.c
libiberty/vasprintf.c
libiberty/vprintf.c

index 6da7194b19f90ec9f5bcba213c40268ca6cca9d0..e09422e6b42bc5d19b39468add27570903b8b4fb 100644 (file)
@@ -1,3 +1,13 @@
+Mon Sep  7 23:29:01 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * mkstemp.c: Include config.h even when not IN_GCC.  Wrap header
+       inclusions inside HAVE_*_H macros.  Include ansidecl.h when not
+       IN_GCC.
+
+       * vasprintf.c: Include stdarg.h/varargs.h first.
+
+       * vprintf.c: Likewise.
+
 Sat Sep  5 03:24:49 1998  Jeffrey A Law  (law@cygnus.com)
 
        * pexecute.c: Updates from gcc.  Copy in gcc has been removed.  This
index 21afcf0d6399cd46e176f35eedade97eb46efb1b..f0eb78c1e2af4da688a4f9cfdfb4d7aeabab10dd 100644 (file)
    write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
 #ifndef IN_GCC
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
+#endif
+#ifdef HAVE_STRING_H
 #include <string.h>
+#endif
 #include <errno.h>
 #include <stdio.h>
 #include <fcntl.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
 #include <sys/time.h>
+#include "ansidecl.h"
 #else
-#include "config.h"
 #include "system.h"
 #include "gansidecl.h"
 #endif
index da83db2ea7505e24be0b1e9f5c90b07cd6decd22..eeb80e661f7d028255d00db969406f8a2dff87b3 100644 (file)
@@ -18,14 +18,14 @@ License along with libiberty; see the file COPYING.LIB.  If
 not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
-#include <stdio.h>
-#include <string.h>
-#include <ansidecl.h>
 #ifdef __STDC__
 #include <stdarg.h>
 #else
 #include <varargs.h>
 #endif
+#include <stdio.h>
+#include <string.h>
+#include <ansidecl.h>
 
 #ifdef TEST
 int global_total_width;
index 89c289eb1056b7faab8c143bac96c14f020d74f3..65b425a4d6b2c977355b296a7bb4205cb3295798 100644 (file)
@@ -1,9 +1,9 @@
-#include <stdio.h>
 #ifdef __STDC__
 #include <stdarg.h>
 #else
 #include <varargs.h>
 #endif
+#include <stdio.h>
 #include <ansidecl.h>
 #undef vprintf
 int
This page took 0.088427 seconds and 5 git commands to generate.