aboutsummaryrefslogtreecommitdiffstats
path: root/vsnprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'vsnprintf.c')
-rw-r--r--vsnprintf.c20
1 files changed, 3 insertions, 17 deletions
diff --git a/vsnprintf.c b/vsnprintf.c
index d221e757bf..78d09c3729 100644
--- a/vsnprintf.c
+++ b/vsnprintf.c
@@ -65,24 +65,10 @@
#define u_short unsigned short
#define u_int unsigned int
-#if !defined(HAVE_STDARG_PROTOTYPES)
-#if defined(__STDC__)
-#define HAVE_STDARG_PROTOTYPES 1
-#endif
-#endif
-
+#include <stdarg.h>
#undef __P
-#if defined(HAVE_STDARG_PROTOTYPES)
-# include <stdarg.h>
-# if !defined(__P)
-# define __P(x) x
-# endif
-#else
-# define __P(x) ()
-# if !defined(const)
-# define const
-# endif
-# include <varargs.h>
+#if !defined(__P)
+# define __P(x) x
#endif
#ifndef _BSD_VA_LIST_
#define _BSD_VA_LIST_ va_list