From 249d48f77b395d82b8f2bb67360c5539212f5bc4 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Sun, 10 Jun 2012 14:53:26 -0400 Subject: BACKENDS: Add #error for platforms not setting tm_wday in release builds --- backends/platform/bada/system.cpp | 4 ++++ backends/platform/ps2/ps2time.cpp | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'backends/platform') diff --git a/backends/platform/bada/system.cpp b/backends/platform/bada/system.cpp index 29ce954eba..816a6755fc 100644 --- a/backends/platform/bada/system.cpp +++ b/backends/platform/bada/system.cpp @@ -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 } } diff --git a/backends/platform/ps2/ps2time.cpp b/backends/platform/ps2/ps2time.cpp index c8da0f4915..decfc552ec 100644 --- a/backends/platform/ps2/ps2time.cpp +++ b/backends/platform/ps2/ps2time.cpp @@ -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 } -- cgit v1.2.3