Harden byte order detection#154
Conversation
|
Clang and GCC define |
Use __BYTE_ORDER__ for GCC/Clang, and include Linux/BSD-specific headers for endian detection. Fixes #135.
Introduce new CI jobs for building and testing on big-endian platforms (s390x and sparc64) as well as FreeBSD.
0e2208d to
47f522d
Compare
|
If the |
We can't. It didn't work, and I removed it again after running actual big endian machines where this failed. |
Okay, then I am fine with it once the CI problems are fixed. |
Use
__BYTE_ORDER__for GCC/Clang, and include Linux/BSD-specific headers for endian detection, and a constexpr static_assert instead of silently defaulting to little-endian.Fixes #135.