forked from mirror/OpenTTD
Codechange: remove endian_check in favour of __BYTE_ORDER macro (Rubidium) (#6762)
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user