Don't compile NSRegularExpression with ICU older than 4.4

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31702 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2010-12-02 19:12:24 +00:00
parent 850c2fb314
commit 5dd47a135e
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2010-12-02 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSRegularExpression.m: Add a guard so this file isn't compiled
if the ICU version is older than 4.4.
2010-11-29 Fred Kiefer <FredKiefer@gmx.de>
* Headers/Foundation/NSPropertyList.h,

View file

@ -1,6 +1,8 @@
#include "config.h"
#if HAVE_ICU
#include "unicode/uregex.h"
#if (U_ICU_VERSION_MAJOR_NUM > 4 || (U_ICU_VERSION_MAJOR_NUM == 4 && U_ICU_VERSION_MINOR_NUM >= 4))
#define GSREGEXTYPE URegularExpression
#import "GSICUString.h"
#import "Foundation/NSRegularExpression.h"
@ -520,4 +522,5 @@ static uint32_t prepareResult(NSRegularExpression *regex,
return self;
}
@end
#endif //U_ICU_VERSION_MAJOR_NUM > 4 || (U_ICU_VERSION_MAJOR_NUM == 4 && U_ICU_VERSION_MINOR_NUM >= 4))
#endif //HAV_ICU