mirror of
https://github.com/Pecusx/libretro-atari800.git
synced 2026-05-20 22:33:22 +02:00
Let retro_endianness.h define WORDS_BIGENDIAN when applicable
This is need i.a. for supporting big-endian linux
This commit is contained in:
@@ -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
|
||||
|
||||
+2
-15
@@ -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 <retro_endianness.h>
|
||||
|
||||
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user