[macruby-changes] [2313] MacRuby/trunk/include/ruby/defines.h
source_changes at macosforge.org
source_changes at macosforge.org
Thu Aug 13 15:42:02 PDT 2009
Revision: 2313
http://trac.macosforge.org/projects/ruby/changeset/2313
Author: pthomson at apple.com
Date: 2009-08-13 15:42:01 -0700 (Thu, 13 Aug 2009)
Log Message:
-----------
Added another guard around the new bignum type specs, as Leopard seems not to define modulo and division for __uint128_t without linking against another library.
Modified Paths:
--------------
MacRuby/trunk/include/ruby/defines.h
Modified: MacRuby/trunk/include/ruby/defines.h
===================================================================
--- MacRuby/trunk/include/ruby/defines.h 2009-08-13 22:42:00 UTC (rev 2312)
+++ MacRuby/trunk/include/ruby/defines.h 2009-08-13 22:42:01 UTC (rev 2313)
@@ -77,7 +77,7 @@
# define SIZEOF_LONG_LONG SIZEOF___INT64
#endif
-#if defined(__LP64__)
+#if defined(__LP64__) && (MAC_OS_X_VERSION_MAX_ALLOWED >= 1060)
# define BDIGIT uint64_t
# define SIZEOF_BDIGITS 8
# define BDIGIT_DBL __uint128_t
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090813/c4afd61f/attachment-0001.html>
More information about the macruby-changes
mailing list