зеркало из https://github.com/mozilla/pjs.git
OS/2 GCC Tinderbox bustage
Hopefully that last locale #define missing
This commit is contained in:
Родитель
27ef20dd5e
Коммит
a491c11bf4
|
@ -63,6 +63,11 @@ nsresult nsDateTimeFormatOS2::FormatTime(nsILocale* locale,
|
|||
return FormatTMTime(locale, dateFormatSelector, timeFormatSelector, localtime( &timetTime ), stringOut);
|
||||
}
|
||||
|
||||
/* Workaround for GCC problem */
|
||||
#ifndef LOCI_sDate
|
||||
#define LOCI_sDate 63
|
||||
#endif
|
||||
|
||||
// performs a locale sensitive date formatting operation on the struct tm parameter
|
||||
nsresult nsDateTimeFormatOS2::FormatTMTime(nsILocale* locale,
|
||||
const nsDateFormatSelector dateFormatSelector,
|
||||
|
@ -93,7 +98,7 @@ nsresult nsDateTimeFormatOS2::FormatTMTime(nsILocale* locale,
|
|||
UniStrcat( uFmtD, (UniChar*)L"%x");
|
||||
break;
|
||||
case kDateFormatYearMonth:
|
||||
UniQueryLocaleItem( locObj, DATESEP, &pString);
|
||||
UniQueryLocaleItem( locObj, LOCI_sDate, &pString);
|
||||
UniStrcat( uFmtD, (UniChar*)L"%y");
|
||||
UniStrcat( uFmtD, pString);
|
||||
UniStrcat( uFmtD, (UniChar*)L"%m");
|
||||
|
|
Загрузка…
Ссылка в новой задаче