ruby-changes:3509
From: ko1@a...
Date: Sun, 13 Jan 2008 15:36:01 +0900 (JST)
Subject: [ruby-changes:3509] nobu - Ruby:r14987 (ruby_1_8, trunk): * defines.h (WORDS_BIGENDIAN): honor __BIG_ENDIAN__ than the result of
nobu 2008-01-11 11:57:38 +0900 (Fri, 11 Jan 2008)
New Revision: 14987
Modified files:
branches/ruby_1_8/ChangeLog
branches/ruby_1_8/defines.h
trunk/ChangeLog
trunk/include/ruby/defines.h
Log:
* defines.h (WORDS_BIGENDIAN): honor __BIG_ENDIAN__ than the result of
configure.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/defines.h?r1=14987&r2=14986&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=14987&r2=14986&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14987&r2=14986&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/include/ruby/defines.h?r1=14987&r2=14986&diff_format=u
Index: include/ruby/defines.h
===================================================================
--- include/ruby/defines.h (revision 14986)
+++ include/ruby/defines.h (revision 14987)
@@ -110,6 +110,16 @@
#endif
#endif
+#if defined(__NeXT__) || defined(__APPLE__)
+/* Do not trust WORDS_BIGENDIAN from configure since -arch compiler flag may
+ result in a different endian. Instead trust __BIG_ENDIAN__ and
+ __LITTLE_ENDIAN__ which are set correctly by -arch. */
+#undef WORDS_BIGENDIAN
+#ifdef __BIG_ENDIAN__
+#define WORDS_BIGENDIAN
+#endif
+#endif
+
#ifdef __NeXT__
/* NextStep, OpenStep, Rhapsody */
#ifndef S_IRUSR
@@ -163,13 +173,6 @@
#ifndef S_ISREG
#define S_ISREG(mode) (((mode) & (0170000)) == (0100000))
#endif
-/* Do not trust WORDS_BIGENDIAN from configure since -arch compiler flag may
- result in a different endian. Instead trust __BIG_ENDIAN__ and
- __LITTLE_ENDIAN__ which are set correctly by -arch. */
-#undef WORDS_BIGENDIAN
-#ifdef __BIG_ENDIAN__
-#define WORDS_BIGENDIAN
-#endif
#ifndef __APPLE__
/* NextStep, OpenStep (but not Rhapsody) */
#ifndef GETPGRP_VOID
Index: ChangeLog
===================================================================
--- ChangeLog (revision 14986)
+++ ChangeLog (revision 14987)
@@ -1,5 +1,8 @@
-Fri Jan 11 10:24:03 2008 Nobuyoshi Nakada <nobu@r...>
+Fri Jan 11 11:57:36 2008 Nobuyoshi Nakada <nobu@r...>
+ * defines.h (WORDS_BIGENDIAN): honor __BIG_ENDIAN__ than the result of
+ configure.
+
* lib/rdoc/options.rb (check_diagram): more precise check, darwin
is not Windows but minwg is on it.
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog (revision 14986)
+++ ruby_1_8/ChangeLog (revision 14987)
@@ -1,5 +1,8 @@
-Fri Jan 11 11:50:36 2008 Nobuyoshi Nakada <nobu@r...>
+Fri Jan 11 11:57:36 2008 Nobuyoshi Nakada <nobu@r...>
+ * defines.h (WORDS_BIGENDIAN): honor __BIG_ENDIAN__ than the result of
+ configure.
+
* dln.c: use dlopen on Mac OS X 10.3 or later. backport from trunk.
* lib/rdoc/options.rb (check_diagram): more precise check, darwin
Index: ruby_1_8/defines.h
===================================================================
--- ruby_1_8/defines.h (revision 14986)
+++ ruby_1_8/defines.h (revision 14987)
@@ -102,6 +102,16 @@
#endif
#endif
+#if defined(__NeXT__) || defined(__APPLE__)
+/* Do not trust WORDS_BIGENDIAN from configure since -arch compiler flag may
+ result in a different endian. Instead trust __BIG_ENDIAN__ and
+ __LITTLE_ENDIAN__ which are set correctly by -arch. */
+#undef WORDS_BIGENDIAN
+#ifdef __BIG_ENDIAN__
+#define WORDS_BIGENDIAN
+#endif
+#endif
+
#ifdef __NeXT__
/* NextStep, OpenStep, Rhapsody */
#ifndef S_IRUSR
@@ -155,13 +165,6 @@
#ifndef S_ISREG
#define S_ISREG(mode) (((mode) & (0170000)) == (0100000))
#endif
-/* Do not trust WORDS_BIGENDIAN from configure since -arch compiler flag may
- result in a different endian. Instead trust __BIG_ENDIAN__ and
- __LITTLE_ENDIAN__ which are set correctly by -arch. */
-#undef WORDS_BIGENDIAN
-#ifdef __BIG_ENDIAN__
-#define WORDS_BIGENDIAN
-#endif
#ifndef __APPLE__
/* NextStep, OpenStep (but not Rhapsody) */
#ifndef GETPGRP_VOID
--
ML: ruby-changes@q...
Info: