mirror of
https://github.com/fmang/opustags.git
synced 2025-01-16 05:03:13 +01:00
Become macOS compatible
This commit is contained in:
parent
8e9d98ac62
commit
4973a4deab
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user