mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
portability tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32290 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
38670c0a08
commit
e6fca186b1
5 changed files with 33 additions and 22 deletions
|
@ -56,7 +56,8 @@
|
|||
- (NSArray *) _getSymbols: (NSInteger) symbol;
|
||||
@end
|
||||
|
||||
static inline NSInteger _NSToUDateFormatStyle (NSDateFormatterStyle style)
|
||||
static inline NSInteger
|
||||
NSToUDateFormatStyle (NSDateFormatterStyle style)
|
||||
{
|
||||
#if GS_USE_ICU == 1
|
||||
NSInteger relative =
|
||||
|
@ -976,8 +977,8 @@ static NSDateFormatterBehavior _defaultBehavior = 0;
|
|||
tzID = NSZoneMalloc ([self zone], sizeof(UChar) * tzIDLength);
|
||||
[[internal->_tz name] getCharacters: tzID range: NSMakeRange (0, tzIDLength)];
|
||||
|
||||
internal->_formatter = udat_open (_NSToUDateFormatStyle(internal->_timeStyle),
|
||||
_NSToUDateFormatStyle(internal->_dateStyle),
|
||||
internal->_formatter = udat_open (NSToUDateFormatStyle(internal->_timeStyle),
|
||||
NSToUDateFormatStyle(internal->_dateStyle),
|
||||
[[internal->_locale localeIdentifier] UTF8String],
|
||||
tzID,
|
||||
tzIDLength,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue