Add htobe32/be32toh macros for Windows build
This commit is contained in:
1 parent
e67b6a6dd5
commit
983c8ebdf3
1 file changed
+2
@@ -17,6 +17,8 @@
|
||||
// Byte order conversion functions
|
||||
#ifdef _WIN32
|
||||
#include <stdlib.h>
|
||||
#define htobe32(x) _byteswap_ulong(x)
|
||||
#define be32toh(x) _byteswap_ulong(x)
|
||||
#define htobe64(x) _byteswap_uint64(x)
|
||||
#define be64toh(x) _byteswap_uint64(x)
|
||||
#else
|
||||
|
||||
Reference in new issue
Block a user