diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-26 09:16:37 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-07-26 09:16:37 +0000 |
commit | 5dab497052d15c575183039c8d0f4a92426ae895 (patch) | |
tree | 83cfc125dca92e0bfc7da2f6b48b88b67305122e | |
parent | 09e5e42d3e9b8d8f0e065ac051d7fc0d4d4d8d10 (diff) | |
download | ruby-5dab497052d15c575183039c8d0f4a92426ae895.tar.gz |
* ruby.h: support LLP64 model. [ruby-talk:149524]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8838 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | ruby.h | 13 |
2 files changed, 19 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Tue Jul 26 18:11:33 2005 Yukihiro Matsumoto <matz@ruby-lang.org> + + * ruby.h: support LLP64 model. [ruby-talk:149524] + Tue Jul 26 12:57:40 2005 GOTOU Yuuzou <gotoyuzo@notwork.org> * ext/openssl/openssl_missin.c: include <openssl/engine.h> before @@ -24,6 +28,11 @@ Mon Jul 25 14:10:02 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * ext/tk/lib/multi-tk.rb: fix en-bugged part in the last commit. +Mon Jul 25 13:45:18 2005 NAJIMA Hiroki <najima@mickey.ai.kyutech.ac.jp> + + * io.c: check HAVE_SYS_IOCTL_H before including the header. + [ruby-dev:26610] + Sat Jul 23 16:48:12 2005 GOTOU Yuuzou <gotoyuzo@notwork.org> * ext/openssl/ossl_engine.c (ossl_engine_s_load): should check @@ -77,11 +77,18 @@ extern "C" { # define alloca __alloca #endif -#if SIZEOF_LONG != SIZEOF_VOIDP -# error ---->> ruby requires sizeof(void*) == sizeof(long) to be compiled. <<---- -#endif +#if SIZEOF_LONG == SIZEOF_VOIDP typedef unsigned long VALUE; typedef unsigned long ID; +#elif SIZEOF_LONG_LONG == SIZEOF_VOIDP +typedef unsigned long long VALUE; +typedef unsigned long long ID; +#elif SIZEOF___INT64 == SIZEOF_VOIDP +typedef unsigned __int64 VALUE; +typedef unsigned __int64 ID; +#else +# error ---->> ruby requires sizeof(void*) == sizeof(long) to be compiled. <<---- +#endif #ifdef __STDC__ # include <limits.h> |