summaryrefslogtreecommitdiff
path: root/zen/debug_memory_leaks.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:22:55 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:22:55 +0200
commitc4182431ac7d9d306fdd2267e082fa4cec6fec2c (patch)
tree865cca543c062b7af2586f85cee19f9af4e7614d /zen/debug_memory_leaks.cpp
parent5.11 (diff)
downloadFreeFileSync-c4182431ac7d9d306fdd2267e082fa4cec6fec2c.tar.gz
FreeFileSync-c4182431ac7d9d306fdd2267e082fa4cec6fec2c.tar.bz2
FreeFileSync-c4182431ac7d9d306fdd2267e082fa4cec6fec2c.zip
5.12
Diffstat (limited to 'zen/debug_memory_leaks.cpp')
-rw-r--r--zen/debug_memory_leaks.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/zen/debug_memory_leaks.cpp b/zen/debug_memory_leaks.cpp
index 990f2ec7..2359b6ef 100644
--- a/zen/debug_memory_leaks.cpp
+++ b/zen/debug_memory_leaks.cpp
@@ -8,7 +8,7 @@
//Usage: just include this file into a Visual Studio project
-#ifndef NDEBUG
+#ifdef _DEBUG //When _DEBUG is not defined, calls to _CrtSetDbgFlag are removed during preprocessing.
#define _CRTDBG_MAP_ALLOC //
#include <stdlib.h> //keep this order: "The #include statements must be in the order shown here. If you change the order, the functions you use may not work properly."
#include <crtdbg.h> //overwrites "operator new" ect; no need to include this in every compilation unit!
@@ -27,4 +27,4 @@ struct OnStartup
} dummy;
}
-#endif \ No newline at end of file
+#endif //_DEBUG \ No newline at end of file
bgstack15