From 86d99aed95871cecab9d38a6351eccc3d022faa9 Mon Sep 17 00:00:00 2001 From: DmitriyMusatkin Date: Tue, 29 Oct 2024 01:58:57 -0700 Subject: [PATCH] fix win --- include/aws/checksums/private/crc_util.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/aws/checksums/private/crc_util.h b/include/aws/checksums/private/crc_util.h index d5a3c24..38bf320 100644 --- a/include/aws/checksums/private/crc_util.h +++ b/include/aws/checksums/private/crc_util.h @@ -8,6 +8,7 @@ #include #include #include +#include #define large_buffer_apply_impl(Name, T) \ static T aws_large_buffer_apply_##Name( \ @@ -29,7 +30,7 @@ static inline uint32_t aws_bswap32_if_be(uint32_t x) { } #if _MSC_VER - return _byteswap_uint32(x); + return _byteswap_ulong(x); #elif defined(__GNUC__) || defined(__clang__) return __builtin_bswap32(x); #else