fix for building under macOS

This commit is contained in:
Thomas Bernard 2020-01-04 17:28:01 +01:00
parent f11b767efc
commit deb6bdf39a
No known key found for this signature in database
GPG Key ID: 0FF11B67A5C0863C

View File

@ -45,6 +45,13 @@
#endif
#endif
#ifdef __APPLE__
#include <libkern/OSByteOrder.h>
#ifndef be32toh
#define be32toh(x) OSSwapBigToHostInt32(x)
#endif
#endif
//////////////////////////////////// IFF ////////////////////////////////////
/** @defgroup IFF Interchange File Format
* @ingroup loadsaveformats