aboutsummaryrefslogtreecommitdiffstats
path: root/include/ruby/missing.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/missing.h')
-rw-r--r--include/ruby/missing.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index 16d5a6f02b..ea40f62a52 100644
--- a/include/ruby/missing.h
+++ b/include/ruby/missing.h
@@ -144,9 +144,13 @@ RUBY_EXTERN long strtol(const char *, char **, int);
#endif
*/
-#ifndef HAVE_VSNPRINTF
+#if defined HAVE_VSNPRINTF || defined HAVE_SNPRINTF
# include <stdarg.h>
+#endif
+#ifndef HAVE_SNPRINTF
RUBY_EXTERN int snprintf(char *, size_t n, char const *, ...);
+#endif
+#ifndef HAVE_VSNPRINTF
RUBY_EXTERN int vsnprintf(char *, size_t n, char const *, va_list);
#endif