Changeset 228305 in webkit


Ignore:
Timestamp:
Feb 8, 2018 5:58:23 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

[Meta][Win] Support ICU 59.1+
https://bugs.webkit.org/show_bug.cgi?id=181004

Patch by Fujii Hironori <Fujii Hironori> on 2018-02-08
Reviewed by Alex Christensen.

ICU 59 changed the type of UChar from wchar_t to char16_t on
Windows. We need a lot of conversions between UChar* and wchar_t*
to call Windows API because it takes string as wchar_t*.

Fortunately, ICU is configurable to define UChar as wchar_t as
well as the prior ICU.
<http://icu-project.org/apiref/icu4c/umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac>

  • Source/cmake/OptionsWin.cmake: Add a compile option -DUCHAR_TYPE=wchar_t.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r228293 r228305  
     12018-02-08  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Meta][Win] Support ICU 59.1+
     4        https://bugs.webkit.org/show_bug.cgi?id=181004
     5
     6        Reviewed by Alex Christensen.
     7
     8        ICU 59 changed the type of UChar from wchar_t to char16_t on
     9        Windows. We need a lot of conversions between UChar* and wchar_t*
     10        to call Windows API because it takes string as wchar_t*.
     11
     12        Fortunately, ICU is configurable to define UChar as wchar_t as
     13        well as the prior ICU.
     14        <http://icu-project.org/apiref/icu4c/umachine_8h.html#a6bb9fad572d65b305324ef288165e2ac>
     15
     16        * Source/cmake/OptionsWin.cmake: Add a compile option -DUCHAR_TYPE=wchar_t.
     17
    1182018-02-08  Michael Catanzaro  <mcatanzaro@igalia.com>
    219
  • trunk/Source/cmake/OptionsWin.cmake

    r226758 r228305  
    146146
    147147find_package(ICU REQUIRED)
     148add_definitions(-DUCHAR_TYPE=wchar_t)
Note: See TracChangeset for help on using the changeset viewer.