diff options
-rw-r--r-- | scumm.h | 4 | ||||
-rw-r--r-- | sys.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
@@ -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; @@ -182,3 +182,7 @@ char *strdup(const char *s) { } #endif /* NEED_STRDUP */ + +void *operator new(size_t size) { + return calloc(size,1); +} |