aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 20:01:40 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2013-01-22 20:01:40 +0000
commit8521509deb78bca6805c01c7bc9cfa0cbe1d0f6c (patch)
treea97964f20fdc60eeec119f041798ea48cb263c62
parentdf236ed1dea7a18cda0c0ecb93461affd4f817c6 (diff)
fix endian for Mac OS X
svn path=/trunk/externals/miXed/; revision=16967
-rw-r--r--shared/shared.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared/shared.h b/shared/shared.h
index cb60164..60e616a 100644
--- a/shared/shared.h
+++ b/shared/shared.h
@@ -48,8 +48,8 @@ typedef unsigned char uchar;
typedef unsigned long shared_t_bitmask;
-/* this is for GNU/Linux, GNU/Hurd, GNU/kFreeBSD, Mac OS X, iOS */
-#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__GNU__) || defined(__GLIBC__) || defined(__APPLE__)
+/* this is for GNU/Linux, GNU/Hurd, GNU/kFreeBSD */
+#if defined(__linux__) || defined(__FreeBSD_kernel__) || defined(__GNU__)
#include <endian.h>
# if !defined(__BYTE_ORDER) || !defined(__LITTLE_ENDIAN)
# error No byte order defined
@@ -73,7 +73,7 @@ typedef unsigned long shared_t_bitmask;
#define SHARED_LOWOFFSET 1
#endif
-#ifdef __FreeBSD__
+#if defined __FreeBSD__ || defined(__APPLE__)
#include <machine/endian.h>
# if BYTE_ORDER == LITTLE_ENDIAN
# define SHARED_HIOFFSET 1