summaryrefslogtreecommitdiff
path: root/navit/debug.h
diff options
context:
space:
mode:
authorbjasspa <bjasspa@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-07-01 13:21:46 +0000
committerbjasspa <bjasspa@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-07-01 13:21:46 +0000
commit043e2fd2c2a3eb8754c650459ec1bf05db85ef91 (patch)
tree067ea5bf8ac7251de90bd1ac0667a1fc79ab9e0d /navit/debug.h
parent96100a90ee424002f95917fb451c6231bb45409c (diff)
downloadnavit-svn-043e2fd2c2a3eb8754c650459ec1bf05db85ef91.tar.gz
Added defines and includes required to enable MSVC memory debugging features
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5173 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/debug.h')
-rw-r--r--navit/debug.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/navit/debug.h b/navit/debug.h
index dda8c8da..036c0877 100644
--- a/navit/debug.h
+++ b/navit/debug.h
@@ -29,6 +29,13 @@ extern "C" {
#ifdef _MSC_VER
#define __PRETTY_FUNCTION__ __FUNCTION__
+
+/* Uncomment the following define to enable MSVC's memory debugging support */
+/*#define _CRTDBG_MAP_ALLOC*/
+#ifdef _CRTDBG_MAP_ALLOC
+#include <stdlib.h>
+#include <crtdbg.h>
+#endif
#endif
extern int debug_level;