Skip to content

Commit

Permalink
* defines.h (WORDS_BIGENDIAN): honor __BIG_ENDIAN__ than the result of
Browse files Browse the repository at this point in the history
  configure.


git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@14987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
nobu committed Jan 11, 2008
1 parent b7a577c commit 58a9b90
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
5 changes: 4 additions & 1 deletion ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
Fri Jan 11 11:50:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
Fri Jan 11 11:57:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>

* 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.

Expand Down
17 changes: 10 additions & 7 deletions defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ void xfree _((void*));
#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
Expand Down Expand Up @@ -155,13 +165,6 @@ void xfree _((void*));
#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
Expand Down

0 comments on commit 58a9b90

Please sign in to comment.