blob: b8e7ba919a967a9bd626e07cf4a0fcf7f256563f (
plain)
1 From 0dc41f8f6bd099813acb3972f75e4bbb2a5cdb2d Mon Sep 17 00:00:00 2001
2 From: Lars Wendler <polynomial-c@gentoo.org>
3 Date: Fri, 30 Oct 2020 14:28:08 +0100
4 Subject: [PATCH] Fix build with icu-68.1
5
6 icu-68.1 removed public macro definitions for TRUE and FALSE
7
8 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
9 ---
10 src/lib/libcdr_utils.cpp | 2 +-
11 1 file changed, 1 insertion(+), 1 deletion(-)
12
13 diff --git a/src/lib/libcdr_utils.cpp b/src/lib/libcdr_utils.cpp
14 index 09ab42e..250f0a0 100644
15 --- a/src/lib/libcdr_utils.cpp
16 +++ b/src/lib/libcdr_utils.cpp
17 @@ -108,7 +108,7 @@ static unsigned short getEncoding(const unsigned char *buffer, unsigned bufferLe
18 csd = ucsdet_open(&status);
19 if (U_FAILURE(status) || !csd)
20 return 0;
21 - ucsdet_enableInputFilter(csd, TRUE);
22 + ucsdet_enableInputFilter(csd, true);
23 ucsdet_setText(csd, (const char *)buffer, bufferLength, &status);
24 if (U_FAILURE(status))
25 throw libcdr::EncodingException();
26 --
27 2.29.2
|