]>
Commit | Line | Data |
---|---|---|
fd74ebf6 JB |
1 | --- webkitgtk-2.16.1/Source/JavaScriptCore/API/JSStringRef.h.orig 2017-02-20 17:20:08.000000000 +0100 |
2 | +++ webkitgtk-2.16.1/Source/JavaScriptCore/API/JSStringRef.h 2017-04-22 14:35:00.926530142 +0200 | |
3 | @@ -32,6 +32,7 @@ | |
4 | #include <stdbool.h> | |
5 | #endif | |
6 | #include <stddef.h> /* for size_t */ | |
7 | +#include <uchar.h> | |
8 | ||
9 | #ifdef __cplusplus | |
10 | extern "C" { | |
11 | @@ -46,7 +47,7 @@ | |
12 | character. As with all scalar types, endianness depends on the underlying | |
13 | architecture. | |
14 | */ | |
15 | - typedef unsigned short JSChar; | |
16 | + typedef char16_t JSChar; | |
17 | #else | |
18 | typedef wchar_t JSChar; | |
19 | #endif | |
20 | --- webkitgtk-2.16.1/Source/WebKit2/Shared/API/c/WKString.h.orig 2017-02-20 17:20:17.000000000 +0100 | |
21 | +++ webkitgtk-2.16.1/Source/WebKit2/Shared/API/c/WKString.h 2017-04-22 14:35:56.853196170 +0200 | |
22 | @@ -28,6 +28,7 @@ | |
23 | ||
24 | #include <WebKit/WKBase.h> | |
25 | #include <stddef.h> | |
26 | +#include <uchar.h> | |
27 | ||
28 | #ifndef __cplusplus | |
29 | #include <stdbool.h> | |
30 | @@ -39,7 +40,7 @@ | |
31 | ||
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 |