diff --git a/src/ifformat.c b/src/ifformat.c index 4e3e9d91..1573abb9 100644 --- a/src/ifformat.c +++ b/src/ifformat.c @@ -45,6 +45,13 @@ #endif #endif +#ifdef __APPLE__ +#include +#ifndef be32toh +#define be32toh(x) OSSwapBigToHostInt32(x) +#endif +#endif + //////////////////////////////////// IFF //////////////////////////////////// /** @defgroup IFF Interchange File Format * @ingroup loadsaveformats