summaryrefslogtreecommitdiff
path: root/src/win32_memory.cpp
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-11 20:10:00 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-03-11 20:10:00 +0000
commit29b9577bd2846611efb732cc134e5c84956225b8 (patch)
tree78d6b4410748737b20824c80ae0a78f777ad6e2f /src/win32_memory.cpp
parent174bb94648eb9927255bed79f0ec09da4fbfd4d9 (diff)
Fix the CMake generation to work with older versions of CMake 2.4.x, cleaning up some of the macros and also correcting the code to detect what version of CMake is in use.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2155 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/win32_memory.cpp')
-rw-r--r--src/win32_memory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/win32_memory.cpp b/src/win32_memory.cpp
index ba7826240..9da1b7812 100644
--- a/src/win32_memory.cpp
+++ b/src/win32_memory.cpp
@@ -11,6 +11,8 @@
* ---------------------------------------------------
*/
+#ifdef _WIN32
+
#include <windows.h>
#include <exception>
#include <new>
@@ -55,3 +57,5 @@ void operator delete[](void *ptr)
{
HeapFree(GetProcessHeap(), 0, ptr);
}
+
+#endif