summaryrefslogtreecommitdiffstats
path: root/contrib/binutils/libiberty/vsprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/binutils/libiberty/vsprintf.c')
-rw-r--r--contrib/binutils/libiberty/vsprintf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/contrib/binutils/libiberty/vsprintf.c b/contrib/binutils/libiberty/vsprintf.c
index b69e9bc..9f09d7e 100644
--- a/contrib/binutils/libiberty/vsprintf.c
+++ b/contrib/binutils/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
OpenPOWER on IntegriCloud