compat/bswap.h: simplify MSVC endianness detection
authorDaniel Gurney <redacted>
Sun, 8 Nov 2020 09:57:41 +0000 (11:57 +0200)
committerJunio C Hamano <redacted>
Mon, 9 Nov 2020 21:01:10 +0000 (13:01 -0800)
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 <redacted>
Signed-off-by: Daniel Gurney <redacted>
Signed-off-by: Junio C Hamano <redacted>
compat/bswap.h

index c0bb744adcd239ebaf1cb02b63bc5ebdb24544b0..72f225eaa8004349de395b2d93a1977a2cc8b1da 100644 (file)
@@ -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 <stdlib.h>
 
git clone https://git.99rst.org/PROJECT