imrpoved windows includes

This commit is contained in:
Robin Müller 2021-01-29 00:12:40 +01:00
parent 6127bb5ea4
commit 6b4bed8ca9
3 changed files with 4 additions and 3 deletions

View File

@ -25,7 +25,8 @@
#else #else
#ifdef WIN32 #ifdef WIN32
#include <Windows.h> #include <winsock2.h>
#include <windows.h>
#if REG_DWORD == REG_DWORD_LITTLE_ENDIAN #if REG_DWORD == REG_DWORD_LITTLE_ENDIAN
#define BYTE_ORDER_SYSTEM LITTLE_ENDIAN #define BYTE_ORDER_SYSTEM LITTLE_ENDIAN
#else #else

View File

@ -3,7 +3,7 @@
#include <chrono> #include <chrono>
#if defined(WIN32) #if defined(WIN32)
#include <windows.h> #include <sysinfoapi.h>
#elif defined(LINUX) #elif defined(LINUX)
#include <fstream> #include <fstream>
#endif #endif

View File

@ -9,7 +9,7 @@
#include <chrono> #include <chrono>
#if defined(WIN32) #if defined(WIN32)
#include <windows.h> #include <processthreadsapi.h>
#elif defined(LINUX) #elif defined(LINUX)
#include <pthread.h> #include <pthread.h>
#endif #endif