wok-next view webkitgtk/stuff/patches/icu60.patch @ rev 20359
icu: fix dependencies; webkitgtk: patch for updated icu
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Nov 23 12:57:31 2017 +0200 (2017-11-23) |
parents | |
children |
line source
1 --- a/Source/JavaScriptCore/API/JSStringRef.h
2 +++ b/Source/JavaScriptCore/API/JSStringRef.h
3 @@ -32,6 +32,7 @@
4 #include <stdbool.h>
5 #endif
6 #include <stddef.h> /* for size_t */
7 +#include <uchar.h>
9 #ifdef __cplusplus
10 extern "C" {
11 @@ -43,7 +44,7 @@
12 @typedef JSChar
13 @abstract A Unicode character.
14 */
15 - typedef unsigned short JSChar;
16 + typedef char16_t JSChar;
17 #else
18 typedef wchar_t JSChar;
19 #endif
20 --- a/Source/WebKit2/Shared/API/c/WKString.h
21 +++ b/Source/WebKit2/Shared/API/c/WKString.h
22 @@ -28,6 +28,7 @@
24 #include <WebKit2/WKBase.h>
25 #include <stddef.h>
26 +#include <uchar.h>
28 #ifndef __cplusplus
29 #include <stdbool.h>
30 @@ -39,7 +40,7 @@
32 #if !defined(WIN32) && !defined(_WIN32) \
33 && !((defined(__CC_ARM) || defined(__ARMCC__)) && !defined(__linux__)) /* RVCT */
34 - typedef unsigned short WKChar;
35 + typedef char16_t WKChar;
36 #else
37 typedef wchar_t WKChar;
38 #endif