]>
Commit | Line | Data |
---|---|---|
0b6282ce | 1 | --- SDL-1.1.7/include/SDL_byteorder.h.foo Mon May 7 14:27:33 2001 |
2 | +++ SDL-1.1.7/include/SDL_byteorder.h Mon May 7 14:29:22 2001 | |
3 | @@ -34,6 +34,12 @@ | |
4 | #define SDL_LIL_ENDIAN 1234 | |
5 | #define SDL_BIG_ENDIAN 4321 | |
6 | ||
7 | + | |
8 | +#ifdef __linux__ | |
9 | +#include <endian.h> | |
10 | +#define SDL_BYTEORDER __BYTE_ORDER | |
11 | +#else | |
12 | + | |
13 | /* Pardon the mess, I'm trying to determine the endianness of this host. | |
14 | I'm doing it by preprocessor defines rather than some sort of configure | |
15 | script so that application code can use this too. The "right" way would | |
16 | @@ -46,5 +52,7 @@ | |
17 | #else | |
18 | #define SDL_BYTEORDER SDL_BIG_ENDIAN | |
19 | #endif | |
20 | + | |
21 | +#endif /* __linux __ */ | |
22 | ||
23 | #endif /* _SDL_byteorder_h */ |