qt5-webkit-icu59.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --- qtwebkit-opensource-src-5.5.1/Source/JavaScriptCore/API/JSStringRef.h.orig 2015-10-13 06:37:10.000000000 +0200
  2. +++ qtwebkit-opensource-src-5.5.1/Source/JavaScriptCore/API/JSStringRef.h 2017-04-24 12:26:42.495345570 +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. @@ -43,7 +44,7 @@
  11. @typedef JSChar
  12. @abstract A Unicode character.
  13. */
  14. - typedef unsigned short JSChar;
  15. + typedef char16_t JSChar;
  16. #else
  17. typedef wchar_t JSChar;
  18. #endif
  19. --- qtwebkit-opensource-src-5.5.1/Source/WebKit2/Shared/API/c/WKString.h.orig 2015-10-13 06:37:12.000000000 +0200
  20. +++ qtwebkit-opensource-src-5.5.1/Source/WebKit2/Shared/API/c/WKString.h 2017-04-24 12:27:33.432011867 +0200
  21. @@ -31,6 +31,7 @@
  22. #ifndef __cplusplus
  23. #include <stdbool.h>
  24. #endif
  25. +#include <uchar.h>
  26. #ifdef __cplusplus
  27. extern "C" {
  28. @@ -38,7 +39,7 @@
  29. #if !defined(WIN32) && !defined(_WIN32) \
  30. && !((defined(__CC_ARM) || defined(__ARMCC__)) && !defined(__linux__)) /* RVCT */
  31. - typedef unsigned short WKChar;
  32. + typedef char16_t WKChar;
  33. #else
  34. typedef wchar_t WKChar;
  35. #endif