BACKENDS: Add #error for platforms not setting tm_wday in release builds

This commit is contained in:
Matthew Hoops 2012-06-10 14:53:26 -04:00
parent 6d4f2753cf
commit 249d48f77b
2 changed files with 8 additions and 0 deletions

View File

@ -399,7 +399,11 @@ void BadaSystem::getTimeAndDate(TimeDate &td) const {
td.tm_mday = currentTime.GetDay();
td.tm_mon = currentTime.GetMonth();
td.tm_year = currentTime.GetYear();
#ifdef RELEASE_BUILD
#error getTimeAndDate() is not setting the day of the week
#else
td.tm_wday = 0; // FIXME
#endif
}
}

View File

@ -120,5 +120,9 @@ void OSystem_PS2::getTimeAndDate(TimeDate &t) const {
t.tm_year = g_year + 100;
t.tm_mday = g_day;
t.tm_mon = g_month - 1;
#ifdef RELEASE_BUILD
#error getTimeAndDate() is not setting the day of the week
#else
t.tm_wday = 0; // FIXME
#endif
}