mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-20 20:26:42 +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
|
@ -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…
Add table
Add a link
Reference in a new issue