xref: /openbmc/openbmc/poky/meta/recipes-sato/webkit/webkitgtk/0001-Support-ICU-76.1-build.patch (revision 8460358c3d24c71d9d38fd126c745854a6301564)
1*8460358cSPatrick WilliamsFrom 8b0ff0f2e2882f200f1c21ec76fa679444cb1c43 Mon Sep 17 00:00:00 2001
2*8460358cSPatrick WilliamsFrom: Jason Schonberg <schonm@gmail.com>
3*8460358cSPatrick WilliamsDate: Wed, 20 Nov 2024 11:05:52 -0500
4*8460358cSPatrick WilliamsSubject: [PATCH] Support ICU 76.1 build
5*8460358cSPatrick Williams
6*8460358cSPatrick Williamshttps://bugs.webkit.org/show_bug.cgi?id=282120
7*8460358cSPatrick Williams
8*8460358cSPatrick WilliamsReviewed by Yusuke Suzuki.
9*8460358cSPatrick Williams
10*8460358cSPatrick WilliamsIn ICU 76.1 an additional macro `U_SHOW_CPLUSPLUS_HEADER_API` was added to
11*8460358cSPatrick Williamscontrol visibility of the C++ API within ICU. Set this value to `0` since WebKit
12*8460358cSPatrick Williamswants to only use the C API.
13*8460358cSPatrick Williams
14*8460358cSPatrick Williams* Source/WTF/wtf/Platform.h:
15*8460358cSPatrick Williams
16*8460358cSPatrick WilliamsCanonical link: https://commits.webkit.org/285727@main
17*8460358cSPatrick Williams
18*8460358cSPatrick WilliamsUpstream-Status: Backport [ from webkitgtk-2.47.1 https://github.com/WebKit/WebKit/commit/63f7badbada070ebaadd318b2801818ecf7e7ea0 ]
19*8460358cSPatrick Williams
20*8460358cSPatrick WilliamsSigned-off-by: Jason Schonberg <schonm@gmail.com>
21*8460358cSPatrick Williams---
22*8460358cSPatrick Williams Source/WTF/wtf/Platform.h | 1 +
23*8460358cSPatrick Williams 1 file changed, 1 insertion(+)
24*8460358cSPatrick Williams
25*8460358cSPatrick Williamsdiff --git a/Source/WTF/wtf/Platform.h b/Source/WTF/wtf/Platform.h
26*8460358cSPatrick Williamsindex 23070df2..51a8dce9 100644
27*8460358cSPatrick Williams--- a/Source/WTF/wtf/Platform.h
28*8460358cSPatrick Williams+++ b/Source/WTF/wtf/Platform.h
29*8460358cSPatrick Williams@@ -115,6 +115,7 @@
30*8460358cSPatrick Williams /* ICU configuration. Some of these match ICU defaults on some platforms, but we would like them consistently set everywhere we build WebKit. */
31*8460358cSPatrick Williams #define U_HIDE_DEPRECATED_API 1
32*8460358cSPatrick Williams #define U_SHOW_CPLUSPLUS_API 0
33*8460358cSPatrick Williams+#define U_SHOW_CPLUSPLUS_HEADER_API 0
34*8460358cSPatrick Williams #ifdef __cplusplus
35*8460358cSPatrick Williams #define UCHAR_TYPE char16_t
36*8460358cSPatrick Williams #endif
37