diff --git a/src/frontend/qt_sdl/Platform.cpp b/src/frontend/qt_sdl/Platform.cpp index fea4f0a0..32a48989 100644 --- a/src/frontend/qt_sdl/Platform.cpp +++ b/src/frontend/qt_sdl/Platform.cpp @@ -19,6 +19,29 @@ #include #include #include + +#ifdef __WIN32__ + #define NTDDI_VERSION 0x06000000 // GROSS FUCKING HACK + #include + #include + //#include // FUCK THAT SHIT + #include + #include + #include + #define dup _dup + #define socket_t SOCKET + #define sockaddr_t SOCKADDR +#else + #include + #include + #include + #include + + #define socket_t int + #define sockaddr_t struct sockaddr + #define closesocket close +#endif + #include #include #include @@ -32,31 +55,8 @@ #include "LAN_PCap.h" #include -#ifdef __WIN32__ -#define NTDDI_VERSION 0x06000000 // GROSS FUCKING HACK -#include -//#include // FUCK THAT SHIT -#include -#include -#include -#include -#define dup _dup -#define socket_t SOCKET -#define sockaddr_t SOCKADDR -#else - -#include -#include -#include -#include - -#define socket_t int -#define sockaddr_t struct sockaddr -#define closesocket close -#endif - #ifndef INVALID_SOCKET -#define INVALID_SOCKET (socket_t)-1 + #define INVALID_SOCKET (socket_t)-1 #endif