]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - win/inspircd_win32wrapper.h
Change CacheRefreshTimer tick time back to 5 minutes
[user/henk/code/inspircd.git] / win / inspircd_win32wrapper.h
index 75404ef8b29e170fb10230c61ae9621bbd19a97e..a1463b318cc19ee48e2ad165400709bfd3f6e72f 100644 (file)
  */
 
 
+#pragma once
+
 /* Windows Port
    Wrapper Functions/Definitions
    By Burlex */
-
-#ifndef INSPIRCD_WIN32WRAPPER_H
-#define INSPIRCD_WIN32WRAPPER_H
-
 /*
  * Starting with PSAPI version 2 for Windows 7 and Windows Server 2008 R2, this function is defined as K32GetProcessMemoryInfo in Psapi.h and exported
  * in Kernel32.lib and Kernel32.dll. However, you should always call this function as GetProcessMemoryInfo. To ensure correct resolution of symbols
@@ -45,9 +43,6 @@
 #define VC_EXTRALEAN
 #define WIN32_LEAN_AND_MEAN
 
-/* They just have to be *different*, don't they. */
-#define PATH_MAX MAX_PATH
-
 /* Macros for exporting symbols - dependant on what is being compiled */
 
 #ifdef DLL_BUILD
@@ -74,6 +69,9 @@
 #include <direct.h>
 #include <process.h>
 
+/* Windows defines this already. */
+#undef ERROR
+
 /* strcasecmp is not defined on windows by default */
 #define strcasecmp _stricmp
 #define strncasecmp _strnicmp
@@ -200,6 +198,3 @@ private:
        char szErrorString[500];
        DWORD dwErrorCode;
 };
-
-#endif
-