mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
6e959da071
commit
7fc5fa69f1
3 changed files with 10 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue