summaryrefslogtreecommitdiff
path: root/include/ruby/missing.h
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-24 10:00:18 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-24 10:00:18 +0000
commit9096abd36a13bcabe0dc6ad344f01a189c6c3293 (patch)
treeb07cec73543cfa448790ce709665108cf4395c31 /include/ruby/missing.h
parent355e0f4efd94526c6de4afed0c5b2bd6992b19ac (diff)
* include/ruby/missing.h (vsnprintf): rollback a part of r24179, because
it's meaningless. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24638 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/missing.h')
-rw-r--r--include/ruby/missing.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index 61524d2db1a..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
-extern int vsnprintf(char *, size_t n, char const *, va_list);
+# 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