icu59.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. #ifdef __cplusplus
  9. extern "C" {
  10. @@ -46,7 +47,7 @@
  11. character. As with all scalar types, endianness depends on the underlying
  12. architecture.
  13. */
  14. - typedef unsigned short JSChar;
  15. + typedef char16_t JSChar;
  16. #else
  17. typedef wchar_t JSChar;
  18. #endif
  19. --- webkitgtk-2.16.1/Source/WebKit2/Shared/API/c/WKString.h.orig 2017-02-20 17:20:17.000000000 +0100
  20. +++ webkitgtk-2.16.1/Source/WebKit2/Shared/API/c/WKString.h 2017-04-22 14:35:56.853196170 +0200
  21. @@ -28,6 +28,7 @@
  22. #include <WebKit/WKBase.h>
  23. #include <stddef.h>
  24. +#include <uchar.h>
  25. #ifndef __cplusplus
  26. #include <stdbool.h>
  27. @@ -39,7 +40,7 @@
  28. #if !defined(WIN32) && !defined(_WIN32) \
  29. && !((defined(__CC_ARM) || defined(__ARMCC__)) && !defined(__linux__)) /* RVCT */
  30. - typedef unsigned short WKChar;
  31. + typedef char16_t WKChar;
  32. #else
  33. typedef wchar_t WKChar;
  34. #endif