mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-20 20:19:32 +00:00
ICU-6487 Add better check in configure for utf16 string literal support.
X-SVN-Rev: 26321
This commit is contained in:
parent
4f6fd26142
commit
6113a8cabf
2 changed files with 8 additions and 2 deletions
5
icu4c/source/configure
vendored
5
icu4c/source/configure
vendored
|
@ -10137,7 +10137,10 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|||
/* end confdefs.h. */
|
||||
|
||||
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
|
||||
int daisy;
|
||||
#ifdef _GCC_
|
||||
typedef __CHAR16_TYPE__ char16_t;
|
||||
#endif
|
||||
char16_t test[] = u"This is a UTF16 literal string.";
|
||||
#else
|
||||
GCC IS TOO OLD!
|
||||
#endif
|
||||
|
|
|
@ -933,7 +933,10 @@ if test "$ac_use_strict_options" = no && test "$CHECK_UTF16_STRING_RESULT" = "un
|
|||
CXXFLAGS="${CXXFLAGS} -std=c++0x"
|
||||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
|
||||
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4)
|
||||
int daisy;
|
||||
#ifdef _GCC_
|
||||
typedef __CHAR16_TYPE__ char16_t;
|
||||
#endif
|
||||
char16_t test[] = u"This is a UTF16 literal string.";
|
||||
#else
|
||||
GCC IS TOO OLD!
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue