From 96e88994f8e12b046778f58f3765466843aafba6 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Mon, 7 Sep 1998 20:37:13 +0000 Subject: mkstemp.c: Include config.h even when not IN_GCC. * 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 | 10 ++++++++++ libiberty/mkstemp.c | 12 +++++++++++- libiberty/vasprintf.c | 6 +++--- libiberty/vprintf.c | 2 +- 4 files changed, 25 insertions(+), 5 deletions(-) (limited to 'libiberty') diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 6da7194..e09422e 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,13 @@ +Mon Sep 7 23:29:01 1998 Kaveh R. Ghazi + + * 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 diff --git a/libiberty/mkstemp.c b/libiberty/mkstemp.c index 21afcf0..f0eb78c 100644 --- a/libiberty/mkstemp.c +++ b/libiberty/mkstemp.c @@ -16,16 +16,26 @@ 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 +#endif +#ifdef HAVE_STRING_H #include +#endif #include #include #include +#ifdef HAVE_UNISTD_H #include +#endif #include +#include "ansidecl.h" #else -#include "config.h" #include "system.h" #include "gansidecl.h" #endif diff --git a/libiberty/vasprintf.c b/libiberty/vasprintf.c index da83db2..eeb80e6 100644 --- a/libiberty/vasprintf.c +++ b/libiberty/vasprintf.c @@ -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 -#include -#include #ifdef __STDC__ #include #else #include #endif +#include +#include +#include #ifdef TEST int global_total_width; diff --git a/libiberty/vprintf.c b/libiberty/vprintf.c index 89c289e..65b425a 100644 --- a/libiberty/vprintf.c +++ b/libiberty/vprintf.c @@ -1,9 +1,9 @@ -#include #ifdef __STDC__ #include #else #include #endif +#include #include #undef vprintf int -- cgit v1.1