aboutsummaryrefslogtreecommitdiff
path: root/iemlib1/src/iemlib.h
diff options
context:
space:
mode:
authorGeorg Holzmann <grholzi@users.sourceforge.net>2007-01-17 14:59:27 +0000
committerGeorg Holzmann <grholzi@users.sourceforge.net>2007-01-17 14:59:27 +0000
commit9ee794d32ae2d367d6a98df650fd0797ea5b8575 (patch)
tree8938232cc9791d68f06718a9ee7ea18b3c67345b /iemlib1/src/iemlib.h
parent100242128792ea2cb671838f5cffb9fc974c535f (diff)
applied mac intel patch from t grill
svn path=/trunk/externals/iemlib/; revision=7360
Diffstat (limited to 'iemlib1/src/iemlib.h')
-rw-r--r--iemlib1/src/iemlib.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/iemlib1/src/iemlib.h b/iemlib1/src/iemlib.h
index 203a5e5..ba62f68 100644
--- a/iemlib1/src/iemlib.h
+++ b/iemlib1/src/iemlib.h
@@ -80,8 +80,13 @@ should have been by CPU type and not by operating system! */
#else
#ifdef __APPLE__
+#ifdef __BIG_ENDIAN__
#define HIOFFSET 0 /* word offset to find MSB */
#define LOWOFFSET 1 /* word offset to find LSB */
+#else
+#define HIOFFSET 1 /* word offset to find MSB */
+#define LOWOFFSET 0 /* word offset to find LSB */
+#endif
#define int32 int /* a data type that has 32 bits */
#endif /* __APPLE__ */