Commit 0a379fc5 authored by Max Kellermann's avatar Max Kellermann

system/ByteOrder: fix byte order detection on FreeBSD/aarch64

parent 445c11b8
ver 0.20.9 (not yet released)
* fix byte order detection on FreeBSD/aarch64
ver 0.20.8 (2017/05/19)
* output
......
......@@ -52,6 +52,15 @@
# define IS_LITTLE_ENDIAN false
# define IS_BIG_ENDIAN true
# endif
#elif defined(__BYTE_ORDER__)
/* GCC-specific macros */
# if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
# define IS_LITTLE_ENDIAN true
# define IS_BIG_ENDIAN false
# else
# define IS_LITTLE_ENDIAN false
# define IS_BIG_ENDIAN true
# endif
#else
/* generic compile-time check */
# include <endian.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment