ICU-12766 fix AIX compile opts and uchar include

X-SVN-Rev: 39754
This commit is contained in:
Steven R. Loomis 2017-03-10 01:27:11 +00:00
parent 09d1e6e03b
commit 4968a203f0
2 changed files with 10 additions and 2 deletions

View File

@ -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 <uchar.h>
#endif
/**
* \var UChar
*

View File

@ -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