blob: 01def8873a49b703b020e7265c4c02bea4b49232 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef LIBJIN_LIL_ENDIAN && LIBJIN_BIG_ENDIAN
#define LIBJIN_LIL_ENDIAN 2
#define LIBJIN_BIG_ENDIAN 4
#endif
#ifndef LIBJIN_BYTEORDER
#ifdef __linux__
#include <endian.h>
#define LIBJIN_BYTEORDER __BYTE_ORDER
#else /* __linux__ */
#if defined(__hppa__) || \
defined(__m68k__) || defined(mc68000) || defined(_M_M68K) || \
(defined(__MIPS__) && defined(__MISPEB__)) || \
defined(__ppc__) || defined(__POWERPC__) || defined(_M_PPC) || \
defined(__sparc__)
#define LIBJIN_BYTEORDER LIBJIN_BIG_ENDIAN
#else
#define LIBJIN_BYTEORDER LIBJIN_LIL_ENDIAN
#endif
#endif /* __linux__ */
#endif /* !SDL_BYTEORDER */
|