* defines.h (WORDS_BIGENDIAN): honor __BIG_ENDIAN__ than the result of
configure. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0521c0e36e
commit
82bf2c1ac7
@ -1,4 +1,7 @@
|
|||||||
Fri Jan 11 10:24:03 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.
|
||||||
|
|
||||||
* lib/rdoc/options.rb (check_diagram): more precise check, darwin
|
* lib/rdoc/options.rb (check_diagram): more precise check, darwin
|
||||||
is not Windows but minwg is on it.
|
is not Windows but minwg is on it.
|
||||||
|
@ -110,6 +110,16 @@ void xfree(void*);
|
|||||||
#endif
|
#endif
|
||||||
#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__
|
#ifdef __NeXT__
|
||||||
/* NextStep, OpenStep, Rhapsody */
|
/* NextStep, OpenStep, Rhapsody */
|
||||||
#ifndef S_IRUSR
|
#ifndef S_IRUSR
|
||||||
@ -163,13 +173,6 @@ void xfree(void*);
|
|||||||
#ifndef S_ISREG
|
#ifndef S_ISREG
|
||||||
#define S_ISREG(mode) (((mode) & (0170000)) == (0100000))
|
#define S_ISREG(mode) (((mode) & (0170000)) == (0100000))
|
||||||
#endif
|
#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__
|
#ifndef __APPLE__
|
||||||
/* NextStep, OpenStep (but not Rhapsody) */
|
/* NextStep, OpenStep (but not Rhapsody) */
|
||||||
#ifndef GETPGRP_VOID
|
#ifndef GETPGRP_VOID
|
||||||
|
Loading…
x
Reference in New Issue
Block a user