diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-02 14:35:07 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-02 14:35:07 +0000 |
commit | 2152cd6e6893ee5c5a1b36088ac8056bb0dcf90a (patch) | |
tree | 797ca519d671d5467e899ee591fe6c1bcf10e0c0 /include | |
parent | 44f221cefc83dac89a8890703403524dbdcd1012 (diff) | |
download | ruby-2152cd6e6893ee5c5a1b36088ac8056bb0dcf90a.tar.gz ruby-2152cd6e6893ee5c5a1b36088ac8056bb0dcf90a.tar.xz ruby-2152cd6e6893ee5c5a1b36088ac8056bb0dcf90a.zip |
* include/ruby/missing.h, sprintf.c: get rid of a warning of VC++.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/missing.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/ruby/missing.h b/include/ruby/missing.h index ea40f62a5..d553f1c73 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 |