[PATCH v2] compat/bswap.h: simplify MSVC endianness detection
- From
Daniel Gurney <dgurney99@gmail.com>
- Date
- Nov 8, 2020, 09:57 UTC
- Message-ID
- <20201108095739.23144-1-dgurney99@gmail.com>
- In-Reply-To
- <20201107234751.10661-1-dgurney99@gmail.com>
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.
Signed-off-by: Daniel Gurney <dgurney99@gmail.com> --- v2: just edited the commit message as suggested by Brian.
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 <stdlib.h>
-- 2.29.2