Check ICU presence in private function.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31946 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Stefan Bidigaray 2011-01-24 23:49:46 +00:00
parent a33c9a2da0
commit c88f90f049
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2011-01-24 Stefan Bidigaray <stefanbidi@gmail.com>
* Source/NSDateFormatter.m: Check ICU presence in private function.
2011-01-23 Stefan Bidigaray <stefanbidi@gmail.com>
* Headers/Foundation/NSDateFormatter.h:

View file

@ -53,6 +53,7 @@
static inline NSInteger _NSToUDateFormatStyle (NSDateFormatterStyle style)
{
#if GS_USE_ICU == 1
switch (style)
{
case NSDateFormatterNoStyle:
@ -66,7 +67,8 @@ static inline NSInteger _NSToUDateFormatStyle (NSDateFormatterStyle style)
case NSDateFormatterFullStyle:
return UDAT_FULL;
}
return UDAT_NONE;
#endif
return -1;
}
@implementation NSDateFormatter