From 49a4cec685e3203cb90616cc9ce227c5dd1bda43 Mon Sep 17 00:00:00 2001 From: Georg Holzmann Date: Tue, 16 Jan 2007 15:47:44 +0000 Subject: fix for compilation on osx svn path=/trunk/externals/iem16/; revision=7355 --- src/iem16_table.h | 9 +++++++-- 1 file 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 */ -- cgit v1.2.1