diff options
author | Ben Byer <bbyer@apple.com> | 2007-02-17 02:23:11 -0800 |
---|---|---|
committer | Ben Byer <bbyer@apple.com> | 2007-02-17 02:23:11 -0800 |
commit | 81444486be4f182dde778bac6f7edcbfc4368482 (patch) | |
tree | f6be128731926f73eebd1ac2cf2145f94e5af3fa /include/xorg-server.h.in | |
parent | cf4994b0db2fef4c10ce8804adef766bc5118daf (diff) |
autoconf goodness for XDarwin, courtesy of pogma
Diffstat (limited to 'include/xorg-server.h.in')
-rw-r--r-- | include/xorg-server.h.in | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/xorg-server.h.in b/include/xorg-server.h.in index 48196d8b6..7b2a4d193 100644 --- a/include/xorg-server.h.in +++ b/include/xorg-server.h.in @@ -191,7 +191,17 @@ #undef XVENDORNAME /* Endian order */ -#undef X_BYTE_ORDER +#undef _X_BYTE_ORDER +/* Deal with multiple architecture compiles on Mac OS X */ +#ifndef __APPLE_CC__ +#define X_BYTE_ORDER _X_BYTE_ORDER +#else +#ifdef __BIG_ENDIAN__ +#define X_BYTE_ORDER X_BIG_ENDIAN +#else +#define X_BYTE_ORDER X_LITTLE_ENDIAN +#endif +#endif /* BSD-compliant source */ #undef _BSD_SOURCE |