diff options
author | Even Rouault <even.rouault@spatialys.com> | 2023-05-16 17:40:05 +0000 |
---|---|---|
committer | Even Rouault <even.rouault@spatialys.com> | 2023-05-16 17:40:05 +0000 |
commit | a0a18437d669bc30f91bfada555417903fee65b5 (patch) | |
tree | b084380d5f27e36024ca3efc1ff66682da1a5c08 /libtiff/tiffconf.h.cmake.in | |
parent | cea60470546fcb8bc1bb937512485aae15367b5d (diff) | |
parent | 0dabdfe85732147d1c8d6016e8c3e40522104568 (diff) | |
download | libtiff-git-a0a18437d669bc30f91bfada555417903fee65b5.tar.gz |
Hardcode HOST_FILLORDER to FILLORDER_LSB2MSB, and make 'H' flag of TIFFOpen()...
See merge request libtiff/libtiff!488
Diffstat (limited to 'libtiff/tiffconf.h.cmake.in')
-rw-r--r-- | libtiff/tiffconf.h.cmake.in | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libtiff/tiffconf.h.cmake.in b/libtiff/tiffconf.h.cmake.in index e3a830d4..306874f5 100644 --- a/libtiff/tiffconf.h.cmake.in +++ b/libtiff/tiffconf.h.cmake.in @@ -52,8 +52,17 @@ machine */ #cmakedefine HAVE_IEEEFP 1 -/* Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB) */ -#define HOST_FILLORDER @HOST_FILLORDER@ +/* The concept of HOST_FILLORDER is broken. Since libtiff 4.5.1 + * this macro will always be hardcoded to FILLORDER_LSB2MSB on all + * architectures, to reflect past long behavior of doing so on x86 architecture. + * Note however that the default FillOrder used by libtiff is FILLORDER_MSB2LSB, + * as mandated per the TIFF specification. + * The influence of HOST_FILLORDER is only when passing the 'H' mode in + * TIFFOpen(). + * You should NOT rely on this macro to decide the CPU endianness! + * This macro will be removed in libtiff 4.6 + */ +#define HOST_FILLORDER FILLORDER_LSB2MSB /* Native cpu byte order: 1 if big-endian (Motorola) or 0 if little-endian (Intel) */ |