Compare commits
2 Commits
9cd10865da
...
56b645db47
Author | SHA1 | Date |
---|---|---|
Simon | 56b645db47 | |
Jack Hadrill | d7c29c1ab0 |
|
@ -5,6 +5,11 @@
|
|||
#ifdef _MSC_VER
|
||||
#define __bswap_16 _byteswap_ushort
|
||||
#define __bswap_32 _byteswap_ulong
|
||||
#elif __APPLE__
|
||||
#include <libkern/OSByteOrder.h>
|
||||
#define __bswap_16 OSSwapInt16
|
||||
#define __bswap_32 OSSwapInt32
|
||||
#define __bswap_64 OSSwapInt64
|
||||
#else
|
||||
#include <byteswap.h>
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue