summaryrefslogtreecommitdiff
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
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
-rw-r--r--src/inspircd.cpp7
-rw-r--r--win/inspircd_win32wrapper.h7
2 files changed, 7 insertions, 7 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 7178b9e32..8a3c5fd7e 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -27,13 +27,6 @@
#define RUSAGE_SELF 0
#endif
- /* CRT memory debugging */
- #ifdef DEBUG
- #define _CRTDBG_MAP_ALLOC
- #include <stdlib.h>
- #include <crtdbg.h>
- #endif
-
#include <pwd.h> // setuid
#include <grp.h> // setgid
#endif
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 */