]> granicus.if.org Git - icu/commitdiff
ICU-12645 Make UChar type default char16_t. If all proceeds well, a future change...
authorAndy Heninger <andy.heninger@gmail.com>
Wed, 18 Jan 2017 21:26:05 +0000 (21:26 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Wed, 18 Jan 2017 21:26:05 +0000 (21:26 +0000)
X-SVN-Rev: 39575

icu4c/source/common/unicode/umachine.h

index 547ef1ec499107b7e0b6d9c5a0f2d64074541fcb..5a68d684a17aed332b41ff6c57aa93c3757e6ce5 100644 (file)
@@ -54,7 +54,7 @@
 #ifndef U_HIDE_INTERNAL_API
 /*
  *  U_USE_CHAR16_T
- *     When defined, force use of char16_t for UChar.
+ *     When set, force use of char16_t for UChar.
  *     Note: char16_t is expected to become the default and required in the future,
  *           and this option will be removed.
  *
  *           but Macintosh Xcode does not yet implement it.
  *     @internal
  */
-#ifdef U_USE_CHAR16_T
+#ifndef U_USE_CHAR16_T
+#define U_USE_CHAR16_T 1
+#endif
+
+#if U_USE_CHAR16_T
 #ifdef __cplusplus
 #ifdef UCHAR_TYPE
 #undef UCHAR_TYPE