You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2005/08/02 16:32:55 UTC
svn commit: r227017 -
/xerces/c/branches/xerces-2.7/src/xercesc/util/Transcoders/ICU/ICUTransService.cpp
Author: amassari
Date: Tue Aug 2 07:32:40 2005
New Revision: 227017
URL: http://svn.apache.org/viewcvs?rev=227017&view=rev
Log:
u_init is available only since ICU 2.6
Modified:
xerces/c/branches/xerces-2.7/src/xercesc/util/Transcoders/ICU/ICUTransService.cpp
Modified: xerces/c/branches/xerces-2.7/src/xercesc/util/Transcoders/ICU/ICUTransService.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/branches/xerces-2.7/src/xercesc/util/Transcoders/ICU/ICUTransService.cpp?rev=227017&r1=227016&r2=227017&view=diff
==============================================================================
--- xerces/c/branches/xerces-2.7/src/xercesc/util/Transcoders/ICU/ICUTransService.cpp (original)
+++ xerces/c/branches/xerces-2.7/src/xercesc/util/Transcoders/ICU/ICUTransService.cpp Tue Aug 2 07:32:40 2005
@@ -124,11 +124,13 @@
// ---------------------------------------------------------------------------
ICUTransService::ICUTransService()
{
+#if (U_ICU_VERSION_MAJOR_NUM > 2 || (U_ICU_VERSION_MAJOR_NUM == 2 && U_ICU_VERSION_MINOR_NUM >= 6))
UErrorCode errorCode=U_ZERO_ERROR;
u_init(&errorCode);
if(U_FAILURE(errorCode)) {
XMLPlatformUtils::panic(PanicHandler::Panic_NoTransService);
}
+#endif
#if !defined(XML_OS390) && !defined(XML_AS400) && !defined(XML_HPUX) && !defined(XML_PTX)
#if (U_ICU_VERSION_MAJOR_NUM < 2)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org