mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
850c2fb314
commit
5dd47a135e
2 changed files with 8 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue