diff options
author | arton <arton@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-28 15:15:32 +0000 |
---|---|---|
committer | arton <arton@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-28 15:15:32 +0000 |
commit | e59654c24b756beee29fe7b48a42f0ae22a7ba1e (patch) | |
tree | a418725739719977fd8f3bd44fe5095416c4d54b /include | |
parent | 667833711bc7784f4d7972bbf64332011863ad5b (diff) |
* include/ruby/win32.h: define WIN32 if neither _WIN64 nor WIN32 defined. it forces to use push/pop for pack(4) pragma.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/win32.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h index 9b1c46de18..051e9e9814 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -34,6 +34,9 @@ extern "C" { #if defined(__cplusplus) && defined(_MSC_VER) extern "C++" { /* template without extern "C++" */ #endif +#if !defined(_WIN64) && !defined(WIN32) +#define WIN32 +#endif #include <winsock2.h> #include <ws2tcpip.h> #if defined(__cplusplus) && defined(_MSC_VER) |