Skip to content

Commit

Permalink
fix win
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyMusatkin committed Oct 29, 2024
1 parent 1dd1eb5 commit 86d99ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/aws/checksums/private/crc_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include <aws/common/byte_order.h>
#include <aws/common/stdint.h>
#include <limits.h>
#include <stdlib.h>

#define large_buffer_apply_impl(Name, T) \
static T aws_large_buffer_apply_##Name( \
Expand All @@ -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
Expand Down

0 comments on commit 86d99ae

Please sign in to comment.