diff --git a/source/test_setup.cpp b/source/test_setup.cpp index 2a89581d65..2f62a98ce1 100644 --- a/source/test_setup.cpp +++ b/source/test_setup.cpp @@ -17,7 +17,7 @@ class LeakReporter : public CxxTest::GlobalFixture // (This is done in tearDownWorld so that it doesn't report 'leaks' // if the program is aborted before finishing cleanly.) -#ifdef _MSC_VER +#ifdef HAVE_VC_DEBUG_ALLOC int flags = _CrtSetDbgFlag(_CRTDBG_REPORT_FLAG); flags |= _CRTDBG_LEAK_CHECK_DF; // check for memory leaks flags |= _CRTDBG_ALLOC_MEM_DF; // also check allocs using the non-debug version of new