arch-ppa/src/webkitgtk/icu59.patch

43 lines
1.1 KiB
Diff
Raw Normal View History

2019-03-03 20:21:14 -05:00
diff --git a/Source/JavaScriptCore/API/JSStringRef.h b/Source/JavaScriptCore/API/JSStringRef.h
index aded736..30a6b73 100644
--- a/Source/JavaScriptCore/API/JSStringRef.h
+++ b/Source/JavaScriptCore/API/JSStringRef.h
2018-03-08 21:04:02 -05:00
@@ -32,6 +32,7 @@
#include <stdbool.h>
#endif
#include <stddef.h> /* for size_t */
+#include <uchar.h>
#ifdef __cplusplus
extern "C" {
2019-03-03 20:21:14 -05:00
@@ -43,7 +44,7 @@ extern "C" {
@typedef JSChar
@abstract A Unicode character.
*/
2018-03-08 21:04:02 -05:00
- typedef unsigned short JSChar;
+ typedef char16_t JSChar;
#else
typedef wchar_t JSChar;
#endif
2019-03-03 20:21:14 -05:00
diff --git a/Source/WebKit2/Shared/API/c/WKString.h b/Source/WebKit2/Shared/API/c/WKString.h
index dd5b877..2df4a3b 100644
--- a/Source/WebKit2/Shared/API/c/WKString.h
+++ b/Source/WebKit2/Shared/API/c/WKString.h
2018-03-08 21:04:02 -05:00
@@ -28,6 +28,7 @@
#include <WebKit2/WKBase.h>
#include <stddef.h>
+#include <uchar.h>
#ifndef __cplusplus
#include <stdbool.h>
2019-03-03 20:21:14 -05:00
@@ -39,7 +40,7 @@ extern "C" {
2018-03-08 21:04:02 -05:00
#if !defined(WIN32) && !defined(_WIN32) \
&& !((defined(__CC_ARM) || defined(__ARMCC__)) && !defined(__linux__)) /* RVCT */
- typedef unsigned short WKChar;
+ typedef char16_t WKChar;
#else
typedef wchar_t WKChar;
#endif