summaryrefslogtreecommitdiff
path: root/missing.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-20 16:43:24 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-20 16:43:24 +0000
commit3c59330bfea992d86df30aed2181a75ad37aafeb (patch)
treea3712d7090d9ac41c6081909dd1cbf43c7fdd51a /missing.h
parenteac185d84881e10244657052a2de12d871f1ca94 (diff)
* missing.h: include <stdarg.h> or <varargs.h> if HAVE_VSNPRINTF
is not defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing.h')
-rw-r--r--missing.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/missing.h b/missing.h
index 33dff9b..df4cecc 100644
--- a/missing.h
+++ b/missing.h
@@ -118,6 +118,11 @@ extern unsigned long strtoul _((char *, char **, int));
#endif
#ifndef HAVE_VSNPRINTF
+# ifdef HAVE_STDARG_PROTOTYPES
+# include <stdarg.h>
+# else
+# include <varargs.h>
+# endif
extern snprintf __((char *, size_t n, char const *, ...));
extern vsnprintf _((char *, size_t n, char const *, va_list));
#endif