aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Holzmann <grholzi@users.sourceforge.net>2007-01-16 15:47:44 +0000
committerGeorg Holzmann <grholzi@users.sourceforge.net>2007-01-16 15:47:44 +0000
commit49a4cec685e3203cb90616cc9ce227c5dd1bda43 (patch)
tree8367c91943dfecebe167d5333b623e50ac3f3431
parent25601a34681f78068e99c3cf7ede5e2a08fa700b (diff)
fix for compilation on osx
svn path=/trunk/externals/iem16/; revision=7355
-rw-r--r--src/iem16_table.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/iem16_table.h b/src/iem16_table.h
index 98c98cd..59ec692 100644
--- a/src/iem16_table.h
+++ b/src/iem16_table.h
@@ -76,12 +76,17 @@ EXTERN void table16_usedindsp(t_table16*x);
#define int32 int32_t
#else
-#ifdef __apple__
+#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
+#define LOWOFFSET 0
+#endif
#define int32 int /* a data type that has 32 bits */
-#endif /* MACOSX */
+#endif /* __APPLE__ */
#endif /* __linux__ */
#endif /* MSW */
#endif /* SGI */