Use char16_t for UChar
This is going to be used along with https://crrev.com/c/1361705 .
Bug: 911896
diff --git a/BUILD.gn b/BUILD.gn
index 49d61c6..c3ecaaa 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -55,12 +55,6 @@
defines += [ "ICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_STATIC" ]
}
}
-
- if (is_win) {
- defines += [ "UCHAR_TYPE=wchar_t" ]
- } else {
- defines += [ "UCHAR_TYPE=uint16_t" ]
- }
}
# Config used only by ICU code.
diff --git a/icu.gyp b/icu.gyp
index 19cc3e9..9abae6e 100644
--- a/icu.gyp
+++ b/icu.gyp
@@ -38,14 +38,7 @@
],
}],
['OS=="win"', {
- 'defines': [
- 'UCHAR_TYPE=wchar_t',
- ],
'cflags': [ '/utf-8' ],
- },{
- 'defines': [
- 'UCHAR_TYPE=uint16_t',
- ],
}],
['(OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris" \
or OS=="netbsd" or OS=="mac" or OS=="android" or OS=="qnx") and \