Fix PCSX on big-endian systems
authorPaul Cercueil <paul@crapouillou.net>
Wed, 11 Sep 2019 15:33:14 +0000 (17:33 +0200)
committerAsh Logan <ash@heyquark.com>
Mon, 6 Jun 2022 13:04:52 +0000 (23:04 +1000)
commitffe97735d2c5683cb3ebc91299c047c417d2322d
tree3d1c7219b801ae18128d5f7dc7606aa930e98290
parent9723f27f9d28d90c8f54a9cd9e7203a87cc41b29
Fix PCSX on big-endian systems

The __BIGENDIAN__ macro was never defined anywhere, and the
__BIG_ENDIAN__ macro isn't set anymore by recent versions of GCC.

Replace them by checking __BYTE_ORDER__ against __ORDER_BIG_ENDIAN__.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
libpcsxcore/misc.c
libpcsxcore/psxmem.h
libpcsxcore/r3000a.h
plugins/dfxvideo/draw.c
plugins/dfxvideo/gpu.h
plugins/dfxvideo/gpulib_if.c