diff --git a/opustags.c b/opustags.c index 18713bf..b5bcc81 100644 --- a/opustags.c +++ b/opustags.c @@ -7,6 +7,12 @@ #include #include +#ifdef __APPLE__ +#include +#define htole32(x) OSSwapHostToLittleInt32(x) +#define le32toh(x) OSSwapLittleToHostInt32(x) +#endif + typedef struct { uint32_t vendor_length; const char *vendor_string;