ifformat.c: fix build

This commit is contained in:
Thomas Bernard 2023-01-21 19:31:03 +01:00
parent 0528b50717
commit f2f6b8d135
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF

View File

@ -37,13 +37,17 @@
#else
#define WIN32_BSWAP32 __builtin_bswap32
#endif
#endif
#ifdef __APPLE__
#elif defined(__APPLE__)
#include <libkern/OSByteOrder.h>
#ifndef be32toh
#define be32toh(x) OSSwapBigToHostInt32(x)
#endif
#elif defined(USE_SDL) || defined(USE_SDL2)
#include <SDL_endian.h>
#elif defined(__FreeBSD__)
#include <sys/endian.h>
#else
#include <endian.h>
#endif
//////////////////////////////////// IFF ////////////////////////////////////