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:
Richard Frith-MacDonald 2011-02-22 11:55:37 +00:00
parent 38670c0a08
commit e6fca186b1
5 changed files with 33 additions and 22 deletions

View file

@ -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,