ruby-changes:18957
From: arton <ko1@a...>
Date: Tue, 1 Mar 2011 00:18:02 +0900 (JST)
Subject: [ruby-changes:18957] Ruby:r30989 (trunk): * include/ruby/win32.h: define WIN32 if neither _WIN64 nor WIN32 defined. it forces to use push/pop for pack(4) pragma.
arton 2011-03-01 00:15:32 +0900 (Tue, 01 Mar 2011) New Revision: 30989 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30989 Log: * include/ruby/win32.h: define WIN32 if neither _WIN64 nor WIN32 defined. it forces to use push/pop for pack(4) pragma. Modified files: trunk/ChangeLog trunk/include/ruby/win32.h Index: include/ruby/win32.h =================================================================== --- include/ruby/win32.h (revision 30988) +++ include/ruby/win32.h (revision 30989) @@ -34,6 +34,9 @@ #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) Index: ChangeLog =================================================================== --- ChangeLog (revision 30988) +++ ChangeLog (revision 30989) @@ -1,3 +1,8 @@ +Tue Mar 1 00:12:49 2011 Tajima Akio <artonx@y...> + + * include/ruby/win32.h: define WIN32 if neither _WIN64 nor WIN32 + defined. it forces to use push/pop for pack(4) pragma. + Mon Feb 28 23:52:13 2011 CHIKANAGA Tomoyuki <nagachika00@g...> * test/testunit/test_rake_integration.rb (test_with_rake_runner): -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/