Add htobe32/be32toh macros for Windows build

This commit is contained in:
Evgeny committed 2026-04-24 14:44:24 +03:00
1 parent e67b6a6dd5
commit 983c8ebdf3
1 file changed
+2
+2
View File
@@ -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