Fix endian.h not available on Windows by defining htole16 no-op
This commit is contained in:
committed by
Bastian Bloessl
parent
1b88193094
commit
965e2d474f
@@ -24,6 +24,8 @@
|
||||
#if defined(__APPLE__)
|
||||
#include <architecture/byte_order.h>
|
||||
#define htole16(x) OSSwapHostToLittleInt16(x)
|
||||
#elif defined(_WIN32)
|
||||
#define htole16(x) (x)
|
||||
#else
|
||||
#include <endian.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user