From a76249e13a6e364e0507a12cb71abaaf1647252e Mon Sep 17 00:00:00 2001 From: Yuriy Chernyshov Date: Thu, 31 Jul 2025 13:20:15 +0200 Subject: [PATCH] Fix Windows build See https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/byteswap-uint64-byteswap-ulong-byteswap-ushort?view=msvc-170 --- c++/src/Geospatial.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c++/src/Geospatial.cc b/c++/src/Geospatial.cc index 6d7d268703..2b110cacb6 100644 --- a/c++/src/Geospatial.cc +++ b/c++/src/Geospatial.cc @@ -66,8 +66,8 @@ namespace orc::geospatial { #if defined(_MSC_VER) #include // IWYU pragma: keep -#define ORC_BYTE_SWAP64 _byteSwap_uint64 -#define ORC_BYTE_SWAP32 _byteSwap_ulong +#define ORC_BYTE_SWAP64 _byteswap_uint64 +#define ORC_BYTE_SWAP32 _byteswap_ulong #else #define ORC_BYTE_SWAP64 __builtin_bswap64 #define ORC_BYTE_SWAP32 __builtin_bswap32