ifformat.c: fix build
This commit is contained in:
parent
0528b50717
commit
f2f6b8d135
@ -37,13 +37,17 @@
|
|||||||
#else
|
#else
|
||||||
#define WIN32_BSWAP32 __builtin_bswap32
|
#define WIN32_BSWAP32 __builtin_bswap32
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#elif defined(__APPLE__)
|
||||||
|
|
||||||
#ifdef __APPLE__
|
|
||||||
#include <libkern/OSByteOrder.h>
|
#include <libkern/OSByteOrder.h>
|
||||||
#ifndef be32toh
|
#ifndef be32toh
|
||||||
#define be32toh(x) OSSwapBigToHostInt32(x)
|
#define be32toh(x) OSSwapBigToHostInt32(x)
|
||||||
#endif
|
#endif
|
||||||
|
#elif defined(USE_SDL) || defined(USE_SDL2)
|
||||||
|
#include <SDL_endian.h>
|
||||||
|
#elif defined(__FreeBSD__)
|
||||||
|
#include <sys/endian.h>
|
||||||
|
#else
|
||||||
|
#include <endian.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//////////////////////////////////// IFF ////////////////////////////////////
|
//////////////////////////////////// IFF ////////////////////////////////////
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user