Fix use of wxDateTime without check for wxUSE_DATETIME

This commit is contained in:
Jeff Bland
2018-05-18 06:51:40 -06:00
parent 0445b3eddd
commit a3363cbbfb

View File

@@ -159,6 +159,7 @@ wxString wxGetOsDescription()
}
/* static */
#if wxUSE_DATETIME
bool wxDateTime::GetFirstWeekDay(wxDateTime::WeekDay *firstDay)
{
wxCHECK_MSG( firstDay, false, wxS("output parameter must be non-null") );
@@ -169,3 +170,4 @@ bool wxDateTime::GetFirstWeekDay(wxDateTime::WeekDay *firstDay)
*firstDay = wxDateTime::WeekDay(([calendar firstWeekday] - 1) % 7);
return true;
}
#endif // wxUSE_DATETIME