diff options
author | Max Horn | 2009-10-08 19:41:38 +0000 |
---|---|---|
committer | Max Horn | 2009-10-08 19:41:38 +0000 |
commit | 42120ed626c0d18bc1e1738678dbd1fa96481f04 (patch) | |
tree | 90715ea5e5bb3f3f24547f484b2355194b9cd93c /backends/platform/wince | |
parent | f5ccaf7e29183d6e51456d5994eccfd35ff9a117 (diff) | |
download | scummvm-rg350-42120ed626c0d18bc1e1738678dbd1fa96481f04.tar.gz scummvm-rg350-42120ed626c0d18bc1e1738678dbd1fa96481f04.tar.bz2 scummvm-rg350-42120ed626c0d18bc1e1738678dbd1fa96481f04.zip |
Introduce a new struct TimeDate, replacing struct tm in client code. May lead to compilation issues in ports, which should be trivial to fix, though
svn-id: r44793
Diffstat (limited to 'backends/platform/wince')
-rw-r--r-- | backends/platform/wince/wince-sdl.cpp | 3 | ||||
-rw-r--r-- | backends/platform/wince/wince-sdl.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/backends/platform/wince/wince-sdl.cpp b/backends/platform/wince/wince-sdl.cpp index b2512e0234..c8ddc5c5e3 100644 --- a/backends/platform/wince/wince-sdl.cpp +++ b/backends/platform/wince/wince-sdl.cpp @@ -2523,13 +2523,12 @@ void OSystem_WINCE3::quit() { OSystem_SDL::quit(); } -void OSystem_WINCE3::getTimeAndDate(struct tm &t) const { +void OSystem_WINCE3::getTimeAndDate(TimeDate &t) const { SYSTEMTIME systime; GetLocalTime(&systime); t.tm_year = systime.wYear - 1900; t.tm_mon = systime.wMonth - 1; - t.tm_wday = systime.wDayOfWeek; t.tm_mday = systime.wDay; t.tm_hour = systime.wHour; t.tm_min = systime.wMinute; diff --git a/backends/platform/wince/wince-sdl.h b/backends/platform/wince/wince-sdl.h index 6900d4fb79..a47df42476 100644 --- a/backends/platform/wince/wince-sdl.h +++ b/backends/platform/wince/wince-sdl.h @@ -85,7 +85,7 @@ public: void setupMixer(); // Overloaded from OSystem void engineInit(); - void getTimeAndDate(struct tm &t) const; + void getTimeAndDate(TimeDate &t) const; virtual Common::SeekableReadStream *createConfigReadStream(); virtual Common::WriteStream *createConfigWriteStream(); |