From 42120ed626c0d18bc1e1738678dbd1fa96481f04 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Thu, 8 Oct 2009 19:41:38 +0000 Subject: 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 --- engines/agi/saveload.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'engines/agi') diff --git a/engines/agi/saveload.cpp b/engines/agi/saveload.cpp index 2b03f418ee..e3371329d0 100644 --- a/engines/agi/saveload.cpp +++ b/engines/agi/saveload.cpp @@ -28,8 +28,6 @@ // Multi-slots by Claudio Matsuoka // -#include // for extended infos - #include "common/file.h" #include "graphics/thumbnail.h" #include "common/config-manager.h" @@ -79,7 +77,7 @@ int AgiEngine::saveGame(const char *fileName, const char *description) { Graphics::saveThumbnail(*out); // Creation date/time - tm curTime; + TimeDate curTime; _system->getTimeAndDate(curTime); uint32 saveDate = ((curTime.tm_mday & 0xFF) << 24) | (((curTime.tm_mon + 1) & 0xFF) << 16) | ((curTime.tm_year + 1900) & 0xFFFF); -- cgit v1.2.3