From 100242128792ea2cb671838f5cffb9fc974c535f Mon Sep 17 00:00:00 2001 From: Georg Holzmann Date: Wed, 17 Jan 2007 14:52:17 +0000 Subject: applied mac intel fix patch from thomas grill svn path=/trunk/externals/iemlib/; revision=7359 --- iemlib2/src/iemlib.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'iemlib2/src/iemlib.h') diff --git a/iemlib2/src/iemlib.h b/iemlib2/src/iemlib.h index 36d47ca..46bc8d7 100644 --- a/iemlib2/src/iemlib.h +++ b/iemlib2/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__ */ -- cgit v1.2.1