From e59654c24b756beee29fe7b48a42f0ae22a7ba1e Mon Sep 17 00:00:00 2001 From: arton Date: Mon, 28 Feb 2011 15:15:32 +0000 Subject: [PATCH] * 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 --- ChangeLog | 5 +++++ include/ruby/win32.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index b8026542ad..12c6962407 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Mar 1 00:12:49 2011 Tajima Akio + + * 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 * test/testunit/test_rake_integration.rb (test_with_rake_runner): 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 #include #if defined(__cplusplus) && defined(_MSC_VER)