summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-27 03:18:51 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-12-27 03:18:51 +0000
commit97cc4bf6722e0ae29afbba8a4ecb3f91e06556b3 (patch)
treeecd783a9d019d3243ae5a19fb59a7ac1f1c9f570 /win
parent314ff09e0a5810880ef9397628355ddbd568dc59 (diff)
Place CRT debug defines in win32wrapper.h, so they are defined everywhere. This was also incorrectly inside an ifndef WINDOWS, and hadbeen for a while. (oops.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10917 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'win')
-rw-r--r--win/inspircd_win32wrapper.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/win/inspircd_win32wrapper.h b/win/inspircd_win32wrapper.h
index 4bc364881..4c8658703 100644
--- a/win/inspircd_win32wrapper.h
+++ b/win/inspircd_win32wrapper.h
@@ -28,6 +28,13 @@
#define ENABLE_CRASHDUMPS 0
/* This defaults to 64, way too small for an ircd! */
+/* CRT memory debugging */
+#ifdef DEBUG
+#define _CRTDBG_MAP_ALLOC
+#include <stdlib.h>
+#include <crtdbg.h>
+#endif
+
#define FD_SETSIZE 24000
/* Make builds smaller, leaner and faster */