Browse Source

Add htobe32/be32toh macros for Windows build

congestion
Evgeny 5 months ago
parent
commit
45a181370f
  1. 2
      lib/platform_compat.h

2
lib/platform_compat.h

@ -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

Loading…
Cancel
Save