summaryrefslogtreecommitdiff
path: root/gc_cpp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gc_cpp.cc')
-rw-r--r--gc_cpp.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gc_cpp.cc b/gc_cpp.cc
index 47cff19e..f46388c9 100644
--- a/gc_cpp.cc
+++ b/gc_cpp.cc
@@ -56,11 +56,13 @@ void* operator new( size_t size,
#endif
}
+#if _MSC_VER > 1020
// 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
#endif /* _MSC_VER */