From 78281a270256bc2f69822f208c35652a1b35239f Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Wed, 29 Apr 2020 13:01:27 +0200 Subject: [PATCH] Let retro_endianness.h define WORDS_BIGENDIAN when applicable This is need i.a. for supporting big-endian linux --- Makefile | 1 - libretro/config.h | 17 ++--------------- 2 files changed, 2 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index ec1925b..65283a7 100644 --- a/Makefile +++ b/Makefile @@ -241,7 +241,6 @@ else ifneq (,$(filter $(platform), ngc wii wiiu)) CC = $(DEVKITPPC)/bin/powerpc-eabi-gcc$(EXE_EXT) CXX = $(DEVKITPPC)/bin/powerpc-eabi-g++$(EXE_EXT) AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT) - PLATFORM_DEFINES += -DSDL_BYTEORDER=SDL_BIG_ENDIAN -DMSB_FIRST -DBYTE_ORDER=BIG_ENDIAN -DBYTE_ORDER=BIG_ENDIAN PLATFORM_DEFINES += -DGEKKO -mcpu=750 -meabi -mhard-float -DHAVE_STRTOF_L -DHAVE_LOCALE PLATFORM_DEFINES += -U__INT32_TYPE__ -U __UINT32_TYPE__ -D__INT32_TYPE__=int -D_GNU_SOURCE STATIC_LINKING = 1 diff --git a/libretro/config.h b/libretro/config.h index fb687db..7571c23 100644 --- a/libretro/config.h +++ b/libretro/config.h @@ -524,22 +524,9 @@ /* Define to allow volume only sound. */ /* #undef VOL_ONLY_SOUND */ -/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most - significant byte first (like Motorola and SPARC, unlike Intel). */ -#if defined AC_APPLE_UNIVERSAL_BUILD -# if defined __BIG_ENDIAN__ -# define WORDS_BIGENDIAN 1 -# endif -#else -# ifndef WORDS_BIGENDIAN -/* # undef WORDS_BIGENDIAN */ -# endif -#endif +/* retro_endianness.h defines WORDS_BIGENDIAN if necessarry. */ +#include - -#ifdef WIIU - #define WORDS_BIGENDIAN 1 -#endif /* Define if unaligned word access is ok. */ #if defined(__i386__) || defined(__x86_64__) || defined(__m68k__) #define WORDS_UNALIGNED_OK 1