aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-09-16 09:52:21 +0000
committerPaweł Kołodziejski2002-09-16 09:52:21 +0000
commitae871cd4a6d358cedecd729fb951289c6535fab1 (patch)
tree08235d4a1ba95b3343bed7f038722a71a7bfe7c9 /common
parent29811c5fad6425519d24d8f2873482538410de7a (diff)
downloadscummvm-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.cpp9
-rw-r--r--common/scummsys.h2
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