Hopefully that last locale #define missing
This commit is contained in:
mkaply%us.ibm.com 2000-09-15 14:45:07 +00:00
Родитель 27ef20dd5e
Коммит a491c11bf4
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -63,6 +63,11 @@ nsresult nsDateTimeFormatOS2::FormatTime(nsILocale* locale,
return FormatTMTime(locale, dateFormatSelector, timeFormatSelector, localtime( &timetTime ), stringOut); 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 // performs a locale sensitive date formatting operation on the struct tm parameter
nsresult nsDateTimeFormatOS2::FormatTMTime(nsILocale* locale, nsresult nsDateTimeFormatOS2::FormatTMTime(nsILocale* locale,
const nsDateFormatSelector dateFormatSelector, const nsDateFormatSelector dateFormatSelector,
@ -93,7 +98,7 @@ nsresult nsDateTimeFormatOS2::FormatTMTime(nsILocale* locale,
UniStrcat( uFmtD, (UniChar*)L"%x"); UniStrcat( uFmtD, (UniChar*)L"%x");
break; break;
case kDateFormatYearMonth: case kDateFormatYearMonth:
UniQueryLocaleItem( locObj, DATESEP, &pString); UniQueryLocaleItem( locObj, LOCI_sDate, &pString);
UniStrcat( uFmtD, (UniChar*)L"%y"); UniStrcat( uFmtD, (UniChar*)L"%y");
UniStrcat( uFmtD, pString); UniStrcat( uFmtD, pString);
UniStrcat( uFmtD, (UniChar*)L"%m"); UniStrcat( uFmtD, (UniChar*)L"%m");