diff options
author | Paweł Kołodziejski | 2002-09-16 09:52:21 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2002-09-16 09:52:21 +0000 |
commit | ae871cd4a6d358cedecd729fb951289c6535fab1 (patch) | |
tree | 08235d4a1ba95b3343bed7f038722a71a7bfe7c9 /common | |
parent | 29811c5fad6425519d24d8f2873482538410de7a (diff) | |
download | scummvm-rg350-ae871cd4a6d358cedecd729fb951289c6535fab1.tar.gz scummvm-rg350-ae871cd4a6d358cedecd729fb951289c6535fab1.tar.bz2 scummvm-rg350-ae871cd4a6d358cedecd729fb951289c6535fab1.zip |
minor changes in source structure
svn-id: r4949
Diffstat (limited to 'common')
-rw-r--r-- | common/main.cpp | 9 | ||||
-rw-r--r-- | common/scummsys.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/common/main.cpp b/common/main.cpp index 8ce167f382..9587ee7085 100644 --- a/common/main.cpp +++ b/common/main.cpp @@ -144,3 +144,12 @@ int main(int argc, char *argv[]) return 0; } + +void *operator new(size_t size) { + return calloc(size, 1); +} + +void operator delete(void *ptr) { + free(ptr); +} + diff --git a/common/scummsys.h b/common/scummsys.h index 9048a1e3d2..f6b613ff95 100644 --- a/common/scummsys.h +++ b/common/scummsys.h @@ -365,4 +365,6 @@ char *strdup(const char *s); /* Initialized operator new */ void * operator new(size_t size); +void operator delete(void *ptr); + #endif |