diff options
author | Georg Holzmann <grholzi@users.sourceforge.net> | 2007-01-16 15:47:44 +0000 |
---|---|---|
committer | Georg Holzmann <grholzi@users.sourceforge.net> | 2007-01-16 15:47:44 +0000 |
commit | 49a4cec685e3203cb90616cc9ce227c5dd1bda43 (patch) | |
tree | 8367c91943dfecebe167d5333b623e50ac3f3431 /src | |
parent | 25601a34681f78068e99c3cf7ede5e2a08fa700b (diff) |
fix for compilation on osx
svn path=/trunk/externals/iem16/; revision=7355
Diffstat (limited to 'src')
-rw-r--r-- | src/iem16_table.h | 9 |
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 */ |