Become macOS compatible

This commit is contained in:
Aarni Koskela 2018-09-19 14:31:38 +03:00 committed by Frédéric Mangano-Tarumi
parent 8e9d98ac62
commit 4973a4deab

View File

@ -7,6 +7,12 @@
#include <unistd.h>
#include <ogg/ogg.h>
#ifdef __APPLE__
#include <libkern/OSByteOrder.h>
#define htole32(x) OSSwapHostToLittleInt32(x)
#define le32toh(x) OSSwapLittleToHostInt32(x)
#endif
typedef struct {
uint32_t vendor_length;
const char *vendor_string;