From 89688592d9374f0a011af208ad98a8441445c42d Mon Sep 17 00:00:00 2001 From: yugui Date: Sun, 4 Jan 2009 06:15:49 +0000 Subject: merges r21227 from trunk into ruby_1_9_1. * include/ruby/missing.h, sprintf.c: get rid of a warning of VC++. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@21306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/missing.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/ruby/missing.h') 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 -- cgit