aboutsummaryrefslogtreecommitdiff
path: root/libiberty/vsprintf.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2003-04-15 21:29:34 +0000
committerDJ Delorie <dj@redhat.com>2003-04-15 21:29:34 +0000
commit1ea16ec5b465e30a034cba7bae02ccb0eac546fd (patch)
treeac013c05bb844fe88c352ed281537b54a7288f76 /libiberty/vsprintf.c
parentbb32582095610c5d98aa6285bfe92a7cf52b5047 (diff)
downloadgdb-1ea16ec5b465e30a034cba7bae02ccb0eac546fd.zip
gdb-1ea16ec5b465e30a034cba7bae02ccb0eac546fd.tar.gz
gdb-1ea16ec5b465e30a034cba7bae02ccb0eac546fd.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/vsprintf.c')
-rw-r--r--libiberty/vsprintf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libiberty/vsprintf.c b/libiberty/vsprintf.c
index b69e9bc..9f09d7e 100644
--- a/libiberty/vsprintf.c
+++ b/libiberty/vsprintf.c
@@ -26,9 +26,13 @@ the resulting executable to be covered by the GNU General Public License.
This exception does not however invalidate any other reasons why
the executable file might be covered by the GNU General Public License. */
+#include <ansidecl.h>
+#ifdef ANSI_PROTOTYPES
+#include <stdarg.h>
+#else
#include <varargs.h>
+#endif
#include <stdio.h>
-#include <ansidecl.h>
#undef vsprintf
#if defined _IOSTRG && defined _IOWRT