diff options
author | Max Horn | 2011-05-23 19:20:56 +0200 |
---|---|---|
committer | Max Horn | 2011-05-23 19:39:26 +0200 |
commit | 6c5f50c246062bcb50a20efe7951be7e23449ca0 (patch) | |
tree | 9d8bb0bbb869fac5ba1387d90894fee50c8325ea /backends | |
parent | 20cad6e8b6fe9ae843245697e872256c4ca1e545 (diff) | |
download | scummvm-rg350-6c5f50c246062bcb50a20efe7951be7e23449ca0.tar.gz scummvm-rg350-6c5f50c246062bcb50a20efe7951be7e23449ca0.tar.bz2 scummvm-rg350-6c5f50c246062bcb50a20efe7951be7e23449ca0.zip |
COMMON: Add exit() to list of forbidden symbols
Diffstat (limited to 'backends')
-rw-r--r-- | backends/modular-backend.cpp | 6 | ||||
-rw-r--r-- | backends/modular-backend.h | 3 | ||||
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 1 |
3 files changed, 8 insertions, 2 deletions
diff --git a/backends/modular-backend.cpp b/backends/modular-backend.cpp index fe3991af65..c5f147ffe1 100644 --- a/backends/modular-backend.cpp +++ b/backends/modular-backend.cpp @@ -20,6 +20,8 @@ * */ +#define FORBIDDEN_SYMBOL_EXCEPTION_exit + #include "backends/modular-backend.h" #include "backends/fs/fs-factory.h" @@ -277,3 +279,7 @@ FilesystemFactory *ModularBackend::getFilesystemFactory() { assert(_fsFactory); return _fsFactory; } + +void ModularBackend::quit() { + exit(0); +} diff --git a/backends/modular-backend.h b/backends/modular-backend.h index 43148b6e4a..e46fbfdd21 100644 --- a/backends/modular-backend.h +++ b/backends/modular-backend.h @@ -148,8 +148,7 @@ public: virtual Common::SaveFileManager *getSavefileManager(); virtual FilesystemFactory *getFilesystemFactory(); - virtual void quit() { exit(0); } - virtual void setWindowCaption(const char *caption) {} + virtual void quit(); virtual void displayMessageOnOSD(const char *msg); //@} diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 5cb409794b..a3fb719ca4 100644 --- a/backends/platform/sdl/sdl.cpp +++ b/backends/platform/sdl/sdl.cpp @@ -21,6 +21,7 @@ */ #define FORBIDDEN_SYMBOL_EXCEPTION_time_h +#define FORBIDDEN_SYMBOL_EXCEPTION_exit #ifdef WIN32 #define WIN32_LEAN_AND_MEAN |