mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-26 19:55:44 +00:00
BACKENDS: Add #error for platforms not setting tm_wday in release builds
This commit is contained in:
parent
6d4f2753cf
commit
249d48f77b
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user