OS/2 GCC Tinderbox bustage

Hopefully that last locale #define missing
This commit is contained in:
mkaply%us.ibm.com 2000-09-15 14:45:07 +00:00
parent 9b76ecf59a
commit cd0ab7c8b2

View File

@ -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");