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:
commit
443bd37f65
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user