Fix PCSX on big-endian systems
authorPaul Cercueil <paul@crapouillou.net>
Wed, 11 Sep 2019 15:33:14 +0000 (17:33 +0200)
committernotaz <notasas@gmail.com>
Fri, 29 Jul 2022 20:48:40 +0000 (23:48 +0300)
commit04bd10b132d06eff2a803125dc8da640be2454db
treeeddf3d4219766b692d40f5ee811bb23537002cf3
parentd9e2b173fb11fea4976fb0a6c5feda6b654b4b46
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