compat/bswap.h: simplify MSVC endianness detection
commit1af265f0a01bba0daac8865ad38075f0cb124743
authorDaniel Gurney <dgurney99@gmail.com>
Sun, 8 Nov 2020 09:57:41 +0000 (8 11:57 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 Nov 2020 21:01:10 +0000 (9 13:01 -0800)
tree3142680e2eda2a3b1125596ef21f8a6f8e6b9e6e
parent898f80736c75878acc02dc55672317fcc0e0a5a6
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 <sandals@crustytoothpaste.net>
Signed-off-by: Daniel Gurney <dgurney99@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/bswap.h