Skip to content

Commit

Permalink
ICU-22721 simpler check for platforms that dont have char16_t
Browse files Browse the repository at this point in the history
  • Loading branch information
markusicu committed Sep 24, 2024
1 parent 36061cc commit 0334d92
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions icu4c/source/common/unicode/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -727,10 +727,13 @@
* Doesn't work on Mac C11 (see workaround in ptypes.h)
* or Cygwin less than 3.5.
*/
# if defined(__cplusplus) || !(U_PLATFORM_IS_DARWIN_BASED || (U_PLATFORM == U_PF_CYGWIN && CYGWIN_VERSION_DLL_MAJOR < 3005))
# if defined(__cplusplus)
# define U_HAVE_CHAR16_T 1
# else
# elif U_PLATFORM_IS_DARWIN_BASED || (U_PLATFORM == U_PF_CYGWIN && CYGWIN_VERSION_DLL_MAJOR < 3005)
# define U_HAVE_CHAR16_T 0
# else
// conformant C11
# define U_HAVE_CHAR16_T 1
# endif
#endif

Expand Down

0 comments on commit 0334d92

Please sign in to comment.