mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
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:
parent
a33c9a2da0
commit
c88f90f049
2 changed files with 7 additions and 1 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue