Run-time check for floating point byte order rather than CMake check.

It's safer not to use an unofficial CMake script.
This commit is contained in:
Tsuda Kageyu
2015-07-31 12:46:43 +09:00
parent 13dab99af0
commit 44d9f2bf25
6 changed files with 17 additions and 122 deletions

View File

@ -4,10 +4,6 @@
/* 1 if little-endian, 2 if big-endian. */
#cmakedefine SYSTEM_BYTEORDER ${SYSTEM_BYTEORDER}
/* IEEE754 byte order of your target system. */
/* 1 if little-endian, 2 if big-endian. */
#cmakedefine FLOAT_BYTEORDER ${FLOAT_BYTEORDER}
/* Defined if your compiler supports some byte swap functions */
#cmakedefine HAVE_GCC_BYTESWAP_16 1
#cmakedefine HAVE_GCC_BYTESWAP_32 1