зеркало из https://github.com/github/ruby.git
* 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:
Родитель
6e959da071
Коммит
7fc5fa69f1
|
@ -1,3 +1,7 @@
|
|||
Fri Jan 2 23:33:38 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* include/ruby/missing.h, sprintf.c: get rid of a warning of VC++.
|
||||
|
||||
Fri Jan 2 22:25:46 2009 Yusuke Endoh <mame@tsg.ne.jp>
|
||||
|
||||
* process.c: use sigaction instead of sigset. [ruby-core:21021]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1084,13 +1084,7 @@ fmt_setup(char *buf, size_t size, int c, int flags, int width, int prec)
|
|||
#undef snprintf
|
||||
#define FLOATING_POINT 1
|
||||
#define BSD__dtoa ruby_dtoa
|
||||
#if _MSC_VER >= 1300
|
||||
#pragma warning(disable: 4273)
|
||||
#endif
|
||||
#include "missing/vsnprintf.c"
|
||||
#if _MSC_VER >= 1300
|
||||
#pragma warning(default: 4273)
|
||||
#endif
|
||||
|
||||
static int
|
||||
ruby__sfvwrite(register rb_printf_buffer *fp, register struct __suio *uio)
|
||||
|
|
Загрузка…
Ссылка в новой задаче