summaryrefslogtreecommitdiff
path: root/libiberty/vsprintf.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2003-04-15 21:36:21 +0000
committerDJ Delorie <dj@delorie.com>2003-04-15 21:36:21 +0000
commitd628f0e9eb31be18c59d142343991f4fd4542c71 (patch)
tree1125944904ce6527bb35b5f4afbaea7dea5ac11e /libiberty/vsprintf.c
parentef87ffdb797850dd93d07f0f9bda9f25f19f4b7e (diff)
downloadbinutils-redhat-d628f0e9eb31be18c59d142343991f4fd4542c71.tar.gz
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 b69e9bc9ca..9f09d7e275 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