From: Daniel Gurney Date: Sun, 8 Nov 2020 09:57:41 +0000 (+0200) Subject: compat/bswap.h: simplify MSVC endianness detection X-Git-Tag: v2.30.0-rc0~81^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1af265f0;p=thirdparty%2Fgit.git 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 --- 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