Update of /cvsroot/pure-data/externals/iem16/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22606
Modified Files: iem16_table.h Log Message: uppercased __win32__ to __WIN32__ which should make it compile on mingw32
Index: iem16_table.h =================================================================== RCS file: /cvsroot/pure-data/externals/iem16/src/iem16_table.h,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** iem16_table.h 18 Jan 2007 19:04:47 -0000 1.5 --- iem16_table.h 19 Apr 2007 07:16:51 -0000 1.6 *************** *** 38,97 **** #ifdef __irix__ /* big-endian. Most significant byte is at low address in memory */ ! #define HIOFFSET 0 /* word offset to find MSB */ ! #define LOWOFFSET 1 /* word offset to find LSB */ ! #define int32 long /* a data type that has 32 bits */ ! #else ! #ifdef __win32__ /* little-endian; most significant byte is at highest address */ ! #define HIOFFSET 1 ! #define LOWOFFSET 0 ! #define int32 long ! #else ! #ifdef __FreeBSD__ ! #include <machine/endian.h> ! #if BYTE_ORDER == LITTLE_ENDIAN ! #define HIOFFSET 1 ! #define LOWOFFSET 0 ! #else ! #define HIOFFSET 0 /* word offset to find MSB */ ! #define LOWOFFSET 1 /* word offset to find LSB */ ! #endif /* BYTE_ORDER */ ! #include <sys/types.h> ! #define int32 int32_t ! #endif ! #ifdef __linux__ ! ! #include <endian.h> ! ! #if !defined(__BYTE_ORDER) || !defined(__LITTLE_ENDIAN) ! #error No byte order defined ! #endif ! ! #if __BYTE_ORDER == __LITTLE_ENDIAN ! #define HIOFFSET 1 ! #define LOWOFFSET 0 ! #else ! #define HIOFFSET 0 /* word offset to find MSB */ ! #define LOWOFFSET 1 /* word offset to find LSB */ ! #endif /* __BYTE_ORDER */ ! ! #include <sys/types.h> ! #define int32 int32_t ! ! #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 ! #define LOWOFFSET 0 ! #endif ! #define int32 int /* a data type that has 32 bits */ ! ! #endif /* __APPLE__ */ ! #endif /* __linux__ */ ! #endif /* MSW */ ! #endif /* SGI */
union tabfudge --- 38,84 ---- #ifdef __irix__ /* big-endian. Most significant byte is at low address in memory */ ! # define HIOFFSET 0 /* word offset to find MSB */ ! # define LOWOFFSET 1 /* word offset to find LSB */ ! # define int32 long /* a data type that has 32 bits */ ! #elif defined __WIN32__ /* little-endian; most significant byte is at highest address */ ! # define HIOFFSET 1 ! # define LOWOFFSET 0 ! # define int32 long ! #elif defined __FreeBSD__ ! # include <machine/endian.h> ! # if BYTE_ORDER == LITTLE_ENDIAN ! # define HIOFFSET 1 ! # define LOWOFFSET 0 ! # else ! # define HIOFFSET 0 /* word offset to find MSB */ ! # define LOWOFFSET 1 /* word offset to find LSB */ ! # endif /* BYTE_ORDER */ ! # include <sys/types.h> ! # define int32 int32_t ! #elif defined __linux__ ! # include <endian.h> ! # if !defined(__BYTE_ORDER) || !defined(__LITTLE_ENDIAN) ! # error No byte order defined ! # endif ! # if __BYTE_ORDER == __LITTLE_ENDIAN ! # define HIOFFSET 1 ! # define LOWOFFSET 0 ! # else ! # define HIOFFSET 0 /* word offset to find MSB */ ! # define LOWOFFSET 1 /* word offset to find LSB */ ! # endif /* __BYTE_ORDER */ ! # include <sys/types.h> ! # define int32 int32_t ! #elif defined __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 /* system */
union tabfudge