Let retro_endianness.h define WORDS_BIGENDIAN when applicable

This is need i.a. for supporting big-endian linux
This commit is contained in:
Vladimir Serbinenko
2020-04-29 13:01:27 +02:00
parent 912ef8f4bd
commit 78281a2702
2 changed files with 2 additions and 16 deletions
+2 -15
View File
@@ -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