Merge branch 'issue-184' into 'master'

CmakeLists.txt: define WORDS_BIGENDIAN when the CPU is big endian

Closes #184

See merge request libtiff/libtiff!127
This commit is contained in:
Even Rouault 2020-03-21 11:33:13 +00:00
commit 443bd37f65

View File

@ -402,6 +402,9 @@ endif()
# CPU endianness # CPU endianness
include(TestBigEndian) include(TestBigEndian)
test_big_endian(HOST_BIG_ENDIAN) test_big_endian(HOST_BIG_ENDIAN)
if(HOST_BIG_ENDIAN)
add_definitions(-DWORDS_BIGENDIAN)
endif()
# IEEE floating point # IEEE floating point
set(HAVE_IEEEFP 1) set(HAVE_IEEEFP 1)