compat/bswap.h: detect endianness from XL C compiler macros
authorDavid Michael <redacted>
Sun, 26 Oct 2014 17:34:26 +0000 (13:34 -0400)
committerJunio C Hamano <redacted>
Mon, 27 Oct 2014 18:51:12 +0000 (11:51 -0700)
commitbfb0e6fcd2826a869383b766712131a07a8059b0
tree9bba2bf131e39a07b174e487eb290266eb09fc93
parent48a031af3cc555e0eb9d30b96f2e0943de7c44ae
compat/bswap.h: detect endianness from XL C compiler macros

There is no /usr/include/endian.h equivalent on z/OS, but the
compiler will define macros to indicate endianness on host and
target hardware.  This adds a test for these macros as a last
resort for determining byte order.

Signed-off-by: David Michael <redacted>
Signed-off-by: Junio C Hamano <redacted>
compat/bswap.h
git clone https://git.99rst.org/PROJECT