From 45a181370fd138f2f84d70b6173953e8ed057e84 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Fri, 24 Apr 2026 14:44:24 +0300 Subject: [PATCH] Add htobe32/be32toh macros for Windows build --- lib/platform_compat.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/platform_compat.h b/lib/platform_compat.h index 8aeb2c3e..1450e623 100644 --- a/lib/platform_compat.h +++ b/lib/platform_compat.h @@ -17,6 +17,8 @@ // Byte order conversion functions #ifdef _WIN32 #include + #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