aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/bada
diff options
context:
space:
mode:
authorMatthew Hoops2012-06-10 14:53:26 -0400
committerMatthew Hoops2012-06-10 14:53:26 -0400
commit249d48f77b395d82b8f2bb67360c5539212f5bc4 (patch)
tree518655b5b1127e2f400a9c23c05e5200092c5b74 /backends/platform/bada
parent6d4f2753cfa0da81a7ca17054d193fc8c10cb401 (diff)
downloadscummvm-rg350-249d48f77b395d82b8f2bb67360c5539212f5bc4.tar.gz
scummvm-rg350-249d48f77b395d82b8f2bb67360c5539212f5bc4.tar.bz2
scummvm-rg350-249d48f77b395d82b8f2bb67360c5539212f5bc4.zip
BACKENDS: Add #error for platforms not setting tm_wday in release builds
Diffstat (limited to 'backends/platform/bada')
-rw-r--r--backends/platform/bada/system.cpp4
1 files changed, 4 insertions, 0 deletions
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
}
}