partial backport of r260554 (79fe19caf)
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Thu, 9 Jan 2025 11:39:01 +0000 (14:39 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Thu, 9 Jan 2025 11:39:01 +0000 (14:39 +0300)
Origin: upstream, https://github.com/qtwebkit/qtwebkit/commit/756e1c8f23dc2720
Last-Update: 2024-05-28

In particular, we need -DU_SHOW_CPLUSPLUS_API=0 to avoid compilation
errors in C++ parts of ICU headers which we are not using anyway.

Gbp-Pq: Name icu_75.1.diff

Source/WTF/wtf/Platform.h

index 938a6394947384a57195d21089f8240d9f38df4c..74c97bfd2a6c9d04e267aced2b97c39703f8b483 100644 (file)
 #define ENABLE_PLATFORM_FONT_LOOKUP 1
 #endif
 
+/* FIXME: This does not belong in Platform.h and should instead be included in another mechanism (compiler option, prefix header, config.h, etc) */
+/* ICU configuration. Some of these match ICU defaults on some platforms, but we would like them consistently set everywhere we build WebKit. */
+#define U_SHOW_CPLUSPLUS_API 0
+#ifdef __cplusplus
+#define UCHAR_TYPE char16_t
+#endif
+
 #if COMPILER(MSVC)
 #undef __STDC_LIMIT_MACROS
 #define __STDC_LIMIT_MACROS