summaryrefslogtreecommitdiff
path: root/include/ruby/missing.h
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-02 14:35:07 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-02 14:35:07 +0000
commit7fc5fa69f115488cff017965f487b0abc9b77f77 (patch)
tree797ca519d671d5467e899ee591fe6c1bcf10e0c0 /include/ruby/missing.h
parent6e959da0712f92653d0dc9ed438398729df3dc50 (diff)
* include/ruby/missing.h, sprintf.c: get rid of a warning of VC++.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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