Skip to content

Commit

Permalink
Use _byteswap_ushort etc for WIN32
Browse files Browse the repository at this point in the history
Signed-off-by: Taiju Yamada <[email protected]>
  • Loading branch information
cielavenir committed Mar 29, 2024
1 parent 8cfe17e commit 9c26a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/unaligned.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# define isal_bswap16(x) bswap_16(x)
# define isal_bswap32(x) bswap_32(x)
# define isal_bswap64(x) bswap_64(x)
#elif defined _WIN64
#elif defined _WIN32
# define isal_bswap16(x) _byteswap_ushort(x)
# define isal_bswap32(x) _byteswap_ulong(x)
# define isal_bswap64(x) _byteswap_uint64(x)
Expand Down

0 comments on commit 9c26a06

Please sign in to comment.