compat/bswap.h: detect endianness from XL C compiler macros
commitbfb0e6fcd2826a869383b766712131a07a8059b0
authorDavid Michael <fedora.dm0@gmail.com>
Sun, 26 Oct 2014 17:34:26 +0000 (26 13:34 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 Oct 2014 18:51:12 +0000 (27 11:51 -0700)
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 <fedora.dm0@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/bswap.h