Skip to content

Commit 1af265f

Browse files
dgurneygitster
authored andcommitted
compat/bswap.h: simplify MSVC endianness detection
Modern MSVC or Windows versions don't support big-endian, so it's unnecessary to consider architectures when using it. This also makes ARM64 MSVC builds succeed. Helped-by: brian m. carlson <[email protected]> Signed-off-by: Daniel Gurney <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 898f807 commit 1af265f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/bswap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static inline uint64_t git_bswap64(uint64_t x)
7474
}
7575
#endif
7676

77-
#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64))
77+
#elif defined(_MSC_VER)
7878

7979
#include <stdlib.h>
8080

0 commit comments

Comments
 (0)