summaryrefslogtreecommitdiff
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, 6 insertions, 0 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index ea40f62a523..d553f1c738e 100644
--- a/include/ruby/missing.h
+++ b/include/ruby/missing.h
@@ -151,7 +151,13 @@ RUBY_EXTERN long strtol(const char *, char **, int);
RUBY_EXTERN int snprintf(char *, size_t n, char const *, ...);
#endif
#ifndef HAVE_VSNPRINTF
+# if _MSC_VER >= 1300
+# pragma warning(disable: 4273)
+# endif
RUBY_EXTERN int vsnprintf(char *, size_t n, char const *, va_list);
+# if _MSC_VER >= 1300
+# pragma warning(default: 4273)
+# endif
#endif
#ifndef HAVE_STRLCPY