aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2003-09-28 21:08:48 +0000
committerMax Horn2003-09-28 21:08:48 +0000
commit17bf7b95aa8fb28dcacbe01a5ff547032ffbea1d (patch)
treed45dcf601b6e3ef0983210144d869821a435c9c3 /common
parent84ed3e272d7a470fac35e446ad9adbbd2c374f82 (diff)
downloadscummvm-rg350-17bf7b95aa8fb28dcacbe01a5ff547032ffbea1d.tar.gz
scummvm-rg350-17bf7b95aa8fb28dcacbe01a5ff547032ffbea1d.tar.bz2
scummvm-rg350-17bf7b95aa8fb28dcacbe01a5ff547032ffbea1d.zip
removed duplicate g_timer object (one was global, one was static to timer.cpp); set g_system earlier (might prevent a few race conditions)
svn-id: r10471
Diffstat (limited to 'common')
-rw-r--r--common/system.h3
-rw-r--r--common/timer.cpp2
-rw-r--r--common/timer.h2
3 files changed, 6 insertions, 1 deletions
diff --git a/common/system.h b/common/system.h
index 4da287e980..164316f71d 100644
--- a/common/system.h
+++ b/common/system.h
@@ -349,4 +349,7 @@ public:
//@}
};
+/** The global OSystem instance. Inited in main(). */
+extern OSystem *g_system;
+
#endif
diff --git a/common/timer.cpp b/common/timer.cpp
index 511d4f03e3..cc8bf00efc 100644
--- a/common/timer.cpp
+++ b/common/timer.cpp
@@ -25,7 +25,7 @@
#include "common/timer.h"
#include "common/util.h"
-static Timer *g_timer = NULL;
+Timer *g_timer = NULL;
Timer::Timer(OSystem *system) :
_system(system),
diff --git a/common/timer.h b/common/timer.h
index 8299b193f7..5aaa7ccf96 100644
--- a/common/timer.h
+++ b/common/timer.h
@@ -60,6 +60,8 @@ protected:
int handler(int t);
};
+extern Timer *g_timer;
+
#endif
#endif