summaryrefslogtreecommitdiffstats
path: root/src/misc
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2008-07-17 08:01:00 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2008-07-17 08:01:00 -0700
commitd63a0cbbfd3979bb1423946fd1853411fbc66210 (patch)
treef3e981717d69b3f725ccbdd9a0ad70c9fe9f320e /src/misc
parent05772a795bf5808ff30008fc2a36ec965e18c50e (diff)
downloadabc-d63a0cbbfd3979bb1423946fd1853411fbc66210.tar.gz
abc-d63a0cbbfd3979bb1423946fd1853411fbc66210.tar.bz2
abc-d63a0cbbfd3979bb1423946fd1853411fbc66210.zip
Version abc80717
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/extra/extra.h2
-rw-r--r--src/misc/vec/vec.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/misc/extra/extra.h b/src/misc/extra/extra.h
index 6b840024..f45afcbe 100644
--- a/src/misc/extra/extra.h
+++ b/src/misc/extra/extra.h
@@ -43,7 +43,9 @@ extern "C" {
// this include should be the first one in the list
// it is used to catch memory leaks on Windows
+#ifdef ABC_CHECK_LEAKS
#include "leaks.h"
+#endif
#include <stdio.h>
#include <stdlib.h>
diff --git a/src/misc/vec/vec.h b/src/misc/vec/vec.h
index ee82fc3e..03de79f1 100644
--- a/src/misc/vec/vec.h
+++ b/src/misc/vec/vec.h
@@ -50,7 +50,9 @@ typedef long long sint64;
// this include should be the first one in the list
// it is used to catch memory leaks on Windows
+#ifdef ABC_CHECK_LEAKS
#include "leaks.h"
+#endif
////////////////////////////////////////////////////////////////////////
/// MACRO DEFINITIONS ///