Codechange: remove endian_check in favour of __BYTE_ORDER macro (Rubidium) (#6762)

This commit is contained in:
Patric Stout
2018-04-29 19:01:28 +02:00
committed by GitHub
parent aef69443e7
commit 0165fe1283
7 changed files with 16 additions and 168 deletions

View File

@@ -29,11 +29,11 @@
#if defined(WIN32) || defined(__OS2__) || defined(WIN64)
#define TTD_ENDIAN TTD_LITTLE_ENDIAN
#elif !defined(TESTING)
/* Else include endian[target/host].h, which has the endian-type, autodetected by the Makefile */
#if defined(STRGEN) || defined(SETTINGSGEN)
#include "endian_host.h"
#include <sys/param.h>
#if __BYTE_ORDER == __LITTLE_ENDIAN
#define TTD_ENDIAN TTD_LITTLE_ENDIAN
#else
#include "endian_target.h"
#define TTD_ENDIAN TTD_BIG_ENDIAN
#endif
#endif /* WIN32 || __OS2__ || WIN64 */