From: Steven R. Loomis Date: Fri, 10 Mar 2017 01:27:11 +0000 (+0000) Subject: ICU-12766 fix AIX compile opts and uchar include X-Git-Tag: release-59-rc~121^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4968a203f09fa854e48957e256e8678cdec97d30;p=icu ICU-12766 fix AIX compile opts and uchar include X-SVN-Rev: 39754 --- diff --git a/icu4c/source/common/unicode/umachine.h b/icu4c/source/common/unicode/umachine.h index 3dab79a825f..fbd2bfe5686 100644 --- a/icu4c/source/common/unicode/umachine.h +++ b/icu4c/source/common/unicode/umachine.h @@ -290,6 +290,14 @@ typedef int8_t UBool; /** Number of bytes in a UChar. @stable ICU 2.0 */ #define U_SIZEOF_UCHAR 2 +/** + * for AIX, uchar.h needs to be included + */ +#if (U_PLATFORM == U_PF_AIX) && defined(__cplusplus) &&(U_CPLUSPLUS_VERSION < 11) +# include +#endif + + /** * \var UChar * diff --git a/icu4c/source/config/mh-aix-va b/icu4c/source/config/mh-aix-va index e1b423658d4..b75dda4a17c 100644 --- a/icu4c/source/config/mh-aix-va +++ b/icu4c/source/config/mh-aix-va @@ -13,8 +13,8 @@ GEN_DEPS.cc= $(CXX) -E -M $(DEFS) $(CPPFLAGS) # This helps in the data library, # -qproto assumes all functions are prototyped (for optimization) # -qrtti turns on compiler RTTI, required beginning with ICU 4.6 -CFLAGS += -qproto -qroconst -CXXFLAGS += -qproto -qroconst -qrtti +CFLAGS += -qproto -qroconst -qlanglvl=extended +CXXFLAGS += -qproto -qroconst -qrtti -qlanglvl=extended0x # If you readd this line, you must change the SO value #LDFLAGS += -brtl