summaryrefslogtreecommitdiff
path: root/ruby.h
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-27 03:07:02 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-27 03:07:02 +0000
commita12c1e4bd25c4600e809eb6271ef13ed5f8d5c17 (patch)
treeb498407cbc7ca7aabd9a70fb6d9fde54f493e8ce /ruby.h
parentf933f9d3a5e5d71bcebc5d0a3206149870c412e0 (diff)
revered all LLP64 modifies due to portability reason.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r--ruby.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/ruby.h b/ruby.h
index b613329..1ab4459 100644
--- a/ruby.h
+++ b/ruby.h
@@ -70,14 +70,11 @@ extern "C" {
# define alloca __alloca
#endif
-#if SIZEOF_LONG == SIZEOF_VOIDP
+#if SIZEOF_LONG != SIZEOF_VOIDP
+# error ---->> ruby requires sizeof(void*) == sizeof(long) to be compiled. <<----
+#else
typedef unsigned long VALUE;
typedef unsigned long ID;
-#elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
-typedef unsigned LONG_LONG VALUE;
-typedef unsigned LONG_LONG ID;
-#else
-# error ---->> ruby requires sizeof(void*) == sizeof(long) to be compiled. <<----
#endif
#ifdef __STDC__