Fix use of wxDateTime without check for wxUSE_DATETIME
This commit is contained in:
parent
0445b3eddd
commit
a3363cbbfb
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue