mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 06:25:30 +00:00
ICU-22721 extend char16_t workaround to cygwin less than 3.5
uchar.h was added in Cygwin version 3.5.0. Unfortunately, the last version of Cygwin that supported i686 was 3.3.6, so it is still somewhat relevant to a subset of users.
This commit is contained in:
parent
0f022dca90
commit
ed68cff34e
1 changed files with 5 additions and 2 deletions
|
@ -154,6 +154,8 @@
|
|||
# define U_PLATFORM U_PF_MINGW
|
||||
#elif defined(__CYGWIN__)
|
||||
# define U_PLATFORM U_PF_CYGWIN
|
||||
/* Cygwin uchar.h doesn't exist until Cygwin 3.5. */
|
||||
# include <cygwin/version.h>
|
||||
#elif defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
|
||||
# define U_PLATFORM U_PF_WINDOWS
|
||||
#elif defined(__ANDROID__)
|
||||
|
@ -722,9 +724,10 @@
|
|||
/*
|
||||
* Notes:
|
||||
* C++11 and C11 require support for UTF-16 literals
|
||||
* Doesn't work on Mac C11 (see workaround in ptypes.h).
|
||||
* 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
|
||||
# if defined(__cplusplus) || !(U_PLATFORM_IS_DARWIN_BASED || (U_PLATFORM == U_PF_CYGWIN && CYGWIN_VERSION_DLL_MAJOR < 3005))
|
||||
# define U_HAVE_CHAR16_T 1
|
||||
# else
|
||||
# define U_HAVE_CHAR16_T 0
|
||||
|
|
Loading…
Add table
Reference in a new issue