diff options
Diffstat (limited to 'include/inspircd.h')
-rw-r--r-- | include/inspircd.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index c06a28043..cc627ca57 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -31,7 +31,7 @@ #define _LARGEFILE_SOURCE #endif -#ifndef WIN32 +#ifndef _WIN32 #define DllExport #define CoreExport #define printf_c printf @@ -55,7 +55,7 @@ #include <cstring> #include <climits> #include <cstdio> -#ifndef WIN32 +#ifndef _WIN32 #include <unistd.h> #endif @@ -232,12 +232,24 @@ class serverstats /** Total bytes of data received */ unsigned long statsRecv; +#ifdef _WIN32 + /** Cpu usage at last sample + */ + FILETIME LastCPU; + /** Time QP sample was read + */ + LARGE_INTEGER LastSampled; + /** QP frequency + */ + LARGE_INTEGER QPFrequency; +#else /** Cpu usage at last sample */ timeval LastCPU; /** Time last sample was read */ timespec LastSampled; +#endif /** The constructor initializes all the counts to zero */ serverstats() @@ -308,10 +320,6 @@ class CoreExport InspIRCd */ char ReadBuffer[65535]; -#ifdef WIN32 - IPC* WindowsIPC; -#endif - public: /** Global cull list, will be processed on next iteration |