From deb6bdf39a1cb133b33c669a8faf033e9b481499 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Sat, 4 Jan 2020 17:28:01 +0100 Subject: [PATCH] fix for building under macOS --- src/ifformat.c | 7 +++++++ 1 file changed, 7 insertions(+) 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