summaryrefslogtreecommitdiff
path: root/win/inspircd_memory_functions.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-03-14 15:19:41 -0400
committerAdam <Adam@anope.org>2013-03-14 15:19:41 -0400
commitb17ba83e9c5da3620277ff317b5f82dc397813d7 (patch)
treee3a4dfc4fb0a62172816c1c41548bb18e89dea4a /win/inspircd_memory_functions.cpp
parentade9cc213446832e818f4dd2c7d942e498cbb2d0 (diff)
Replace Windows build system and installer with cmake
Diffstat (limited to 'win/inspircd_memory_functions.cpp')
-rw-r--r--win/inspircd_memory_functions.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/inspircd_memory_functions.cpp b/win/inspircd_memory_functions.cpp
index 4d8444f4c..398708317 100644
--- a/win/inspircd_memory_functions.cpp
+++ b/win/inspircd_memory_functions.cpp
@@ -16,8 +16,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
-#include "inspircd_win32wrapper.h"
+#include <windows.h>
#include <exception>
#include <new>
#include <new.h>
@@ -50,7 +49,8 @@ void ::operator delete(void * ptr)
HeapFree(GetProcessHeap(), 0, ptr);
}
-void * operator new[] (size_t iSize) {
+void * operator new[] (size_t iSize)
+{
void* ptr = HeapAlloc(GetProcessHeap(), 0, iSize);
if (!ptr)
throw std::bad_alloc();