fork
Fork of cpputest by
Diff: include/CppUTest/MemoryLeakDetectorNewMacros.h
- Revision:
- 1:4769360130ed
- Parent:
- 0:0b799af9d58e
--- a/include/CppUTest/MemoryLeakDetectorNewMacros.h Tue Jan 28 09:27:41 2014 +0000 +++ b/include/CppUTest/MemoryLeakDetectorNewMacros.h Tue Jun 17 15:52:54 2014 +0100 @@ -21,7 +21,8 @@ #include "CppUTestConfig.h" -#if CPPUTEST_USE_MEM_LEAK_DETECTION +/* Make sure that mem leak detection is on and that this is being included from a C++ file */ +#if CPPUTEST_USE_MEM_LEAK_DETECTION && defined(__cplusplus) /* This #ifndef prevents <new> from being included twice and enables the file to be included anywhere */ #ifndef CPPUTEST_USE_NEW_MACROS