]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/porting.h
Add propper client initialization
[dragonfireclient.git] / src / porting.h
index bcce96ef7f0bbb092ffedd546ac7567ba1da69c2..7cd4cf031f446bf9c433e14aa5eca9b210ffc468 100644 (file)
@@ -29,6 +29,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "debug.h"
 #include "constants.h"
 #include "gettime.h"
+#include "threads.h"
 
 #ifdef _MSC_VER
        #define SWPRINTF_CHARSTRING L"%S"
@@ -42,7 +43,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #ifdef _WIN32
        #ifndef _WIN32_WINNT
-               #define _WIN32_WINNT 0x0500
+               #define _WIN32_WINNT 0x0501
        #endif
        #include <windows.h>
        
@@ -147,12 +148,21 @@ bool threadBindToProcessor(threadid_t tid, int pnumber);
 */
 bool threadSetPriority(threadid_t tid, int prio);
 
+/*
+       Return system information
+       e.g. "Linux/3.12.7 x86_64"
+*/
+std::string get_sysinfo();
+
 /*
        Resolution is 10-20ms.
        Remember to check for overflows.
        Overflow can occur at any value higher than 10000000.
 */
 #ifdef _WIN32 // Windows
+#ifndef _WIN32_WINNT
+       #define _WIN32_WINNT 0x0501
+#endif
        #include <windows.h>
        
        inline u32 getTimeS()