Skip to content
Snippets Groups Projects
Commit d8c8f6bc authored by Alberto Massari's avatar Alberto Massari
Browse files

Fixed version check for ICU

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@477908 13f79535-47bb-0310-9956-ffa450edef68
parent 828c7e4d
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,7 @@
#if XERCES_USE_TRANSCODER_ICU
#include <unicode/uchar.h>
#if (U_ICU_VERSION_MAJOR_NUM >= 2) || (U_ICU_VERSION_MAJOR_NUM == 2 && U_ICU_VERSION_MINOR_NUM >=4)
#if (U_ICU_VERSION_MAJOR_NUM > 2) || (U_ICU_VERSION_MAJOR_NUM == 2 && U_ICU_VERSION_MINOR_NUM >=4)
#include <unicode/uset.h>
#include <xercesc/util/XMLString.hpp>
#include <xercesc/util/Janitor.hpp>
......@@ -87,7 +87,7 @@ RangeToken* RangeToken::getCaseInsensitiveToken(TokenFactory* const tokFactory)
bool isNRange = (getTokenType() == T_NRANGE) ? true : false;
RangeToken* lwrToken = tokFactory->createRange(isNRange);
#if XERCES_USE_TRANSCODER_ICU && ((U_ICU_VERSION_MAJOR_NUM >= 2) || (U_ICU_VERSION_MAJOR_NUM == 2 && U_ICU_VERSION_MINOR_NUM >=4))
#if XERCES_USE_TRANSCODER_ICU && ((U_ICU_VERSION_MAJOR_NUM > 2) || (U_ICU_VERSION_MAJOR_NUM == 2 && U_ICU_VERSION_MINOR_NUM >=4))
UChar* rangeStr=(UChar*)fMemoryManager->allocate(40*fElemCount*sizeof(UChar));
ArrayJanitor<UChar> janRange(rangeStr, fMemoryManager);
int c=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment