summaryrefslogtreecommitdiff
path: root/gc_cpp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gc_cpp.cc')
-rw-r--r--gc_cpp.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/gc_cpp.cc b/gc_cpp.cc
index f8b803a8..c4dc4cd2 100644
--- a/gc_cpp.cc
+++ b/gc_cpp.cc
@@ -57,5 +57,11 @@ void* operator new( size_t size,
#endif
}
+// This new operator is used by VC++ 7.0 and later in Debug builds.
+void* operator new[](size_t size, int nBlockUse, const char* szFileName, int nLine)
+{
+ return operator new(size, nBlockUse, szFileName, nLine);
+}
+
#endif /* _MSC_VER */