mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-19 18:35:48 +01:00
Fix: OpenBSD endianness detection
This commit is contained in:
parent
fd106cf67b
commit
0643a3627f
@ -33,6 +33,13 @@
|
|||||||
# else
|
# else
|
||||||
# define TTD_ENDIAN TTD_BIG_ENDIAN
|
# define TTD_ENDIAN TTD_BIG_ENDIAN
|
||||||
# endif
|
# endif
|
||||||
|
#elif defined(__OpenBSD__)
|
||||||
|
# include <endian.h>
|
||||||
|
# if BYTE_ORDER == LITTLE_ENDIAN
|
||||||
|
# define TTD_ENDIAN TTD_LITTLE_ENDIAN
|
||||||
|
# else
|
||||||
|
# define TTD_ENDIAN TTD_BIG_ENDIAN
|
||||||
|
# endif
|
||||||
#elif !defined(TESTING)
|
#elif !defined(TESTING)
|
||||||
# include <sys/param.h>
|
# include <sys/param.h>
|
||||||
# if __BYTE_ORDER == __LITTLE_ENDIAN
|
# if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||||
|
Loading…
Reference in New Issue
Block a user