aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scumm.h4
-rw-r--r--sys.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/scumm.h b/scumm.h
index 5341b439eb..6a40a4655e 100644
--- a/scumm.h
+++ b/scumm.h
@@ -32,6 +32,10 @@
#define SWAP(a,b) do{int tmp=a; a=b; b=tmp; } while(0)
#define ARRAYSIZE(x) (sizeof(x)/sizeof(x[0]))
+/* Initialized operator new */
+void * operator new(size_t size);
+
+
class Scumm;
struct Actor;
struct ScummDebugger;
diff --git a/sys.cpp b/sys.cpp
index f6100b81ef..c7f6dbe2d1 100644
--- a/sys.cpp
+++ b/sys.cpp
@@ -182,3 +182,7 @@ char *strdup(const char *s) {
}
#endif /* NEED_STRDUP */
+
+void *operator new(size_t size) {
+ return calloc(size,1);
+}