Changeset - r24105:4b84c583ff58
[Not reviewed]
master
0 1 0
Charlène - 4 years ago 2020-02-11 11:45:36
julianaito@posteo.jp
Fix: OpenBSD endianness detection
1 file changed with 7 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/core/endian_type.hpp
Show inline comments
 
@@ -33,6 +33,13 @@
 
#	else
 
#		define TTD_ENDIAN TTD_BIG_ENDIAN
 
#	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)
 
#	include <sys/param.h>
 
#	if __BYTE_ORDER == __LITTLE_ENDIAN
0 comments (0 inline, 0 general)