From 1af265f0a01bba0daac8865ad38075f0cb124743 Mon Sep 17 00:00:00 2001 From: Daniel Gurney Date: Sun, 8 Nov 2020 11:57:41 +0200 Subject: [PATCH] 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 Signed-off-by: Daniel Gurney Signed-off-by: Junio C Hamano --- compat/bswap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/bswap.h b/compat/bswap.h index c0bb744adc..72f225eaa8 100644 --- a/compat/bswap.h +++ b/compat/bswap.h @@ -74,7 +74,7 @@ static inline uint64_t git_bswap64(uint64_t x) } #endif -#elif defined(_MSC_VER) && (defined(_M_IX86) || defined(_M_X64)) +#elif defined(_MSC_VER) #include -- 2.11.4.GIT