From 6fd4237b0b8f03eaa51f28c9efcf89600d005bf7 Mon Sep 17 00:00:00 2001
From: Even Rouault <[EMAIL REDACTED]>
Date: Mon, 8 May 2023 23:17:57 +0200
Subject: [PATCH] tif_lerc.c: use WORDS_BIGENDIAN instead of HOST_BIGENDIAN
---
libtiff/tif_lerc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libtiff/tif_lerc.c b/libtiff/tif_lerc.c
index 99de713c..4f357a60 100644
--- a/libtiff/tif_lerc.c
+++ b/libtiff/tif_lerc.c
@@ -517,7 +517,7 @@ static int LERCPreDecode(TIFF *tif, uint16_t s)
{
const unsigned nb_pixels = sp->segment_width * sp->segment_height;
unsigned i;
-#if HOST_BIGENDIAN
+#if WORDS_BIGENDIAN
const unsigned char nan_bytes[] = {0x7f, 0xc0, 0, 0};
#else
const unsigned char nan_bytes[] = {0, 0, 0xc0, 0x7f};