diff options
Diffstat (limited to 'common/system.cpp')
-rw-r--r-- | common/system.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/common/system.cpp b/common/system.cpp index 77cfe17e95..05c56bdd52 100644 --- a/common/system.cpp +++ b/common/system.cpp @@ -125,8 +125,11 @@ void OSystem::clearScreen() { } void OSystem::getTimeAndDate(struct tm &t) const { +#ifndef __PLAYSTATION2__ + // PS2SDK doesn't provide localtime, so this code doesn't compile time_t curTime = time(0); t = *localtime(&curTime); +#endif } /* |