mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* include/ruby/win32.h: include winsock headers in extern "C++" for
C++ extension libraries. * include/ruby/missing.h (vsnprintf): workaround for VC++. [ruby-core:23096] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7d7ca2d9ec
commit
436b2f887a
3 changed files with 15 additions and 7 deletions
|
@ -1,3 +1,11 @@
|
|||
Sat Jul 18 06:30:35 2009 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* include/ruby/win32.h: include winsock headers in extern "C++" for
|
||||
C++ extension libraries.
|
||||
|
||||
* include/ruby/missing.h (vsnprintf): workaround for VC++.
|
||||
[ruby-core:23096]
|
||||
|
||||
Sat Jul 18 00:23:47 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
|
||||
|
||||
* ext/readline/readline.c (Init_readline): rl_catch_signals does
|
||||
|
|
|
@ -151,13 +151,7 @@ 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
|
||||
extern int vsnprintf(char *, size_t n, char const *, va_list);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_STRLCPY
|
||||
|
|
|
@ -27,8 +27,14 @@ extern "C" {
|
|||
|
||||
// #include <stdarg.h> conflict with varargs.h?
|
||||
#if !defined(WSAAPI)
|
||||
#if defined(__cplusplus) && defined(_MSC_VER)
|
||||
extern "C++" { /* template without extern "C++" */
|
||||
#endif
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#if defined(__cplusplus) && defined(_MSC_VER)
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define NT 1 /* deprecated */
|
||||
|
|
Loading…
Add table
Reference in a new issue