Improved compatibility - fix mingw crossbuild (#337)

This commit is contained in:
svost 2021-12-23 09:48:20 +03:00 committed by GitHub
parent 66cd29e747
commit 5457217503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View File

@ -12,8 +12,8 @@
#define WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN
#endif #endif
#include <WS2tcpip.h> #include <ws2tcpip.h>
#include <WinSock2.h> #include <winsock2.h>
#include <basetsd.h> #include <basetsd.h>
#include <io.h> #include <io.h>
#include <ws2def.h> #include <ws2def.h>

View File

@ -17,7 +17,7 @@
// Windows // Windows
#ifdef _WIN32 #ifdef _WIN32
#include <Windows.h> #include <windows.h>
#endif #endif
namespace ix namespace ix

View File

@ -13,7 +13,7 @@
#include <string> #include <string>
#ifdef _WIN32 #ifdef _WIN32
#include <BaseTsd.h> #include <basetsd.h>
typedef SSIZE_T ssize_t; typedef SSIZE_T ssize_t;
#endif #endif

View File

@ -15,7 +15,7 @@
#include <errno.h> #include <errno.h>
#include <vector> #include <vector>
#ifdef _WIN32 #ifdef _WIN32
#include <Shlwapi.h> #include <shlwapi.h>
#else #else
#include <fnmatch.h> #include <fnmatch.h>
#endif #endif

View File

@ -11,7 +11,7 @@
#include <string> #include <string>
#ifdef _WIN32 #ifdef _WIN32
#include <BaseTsd.h> #include <basetsd.h>
typedef SSIZE_T ssize_t; typedef SSIZE_T ssize_t;
#endif #endif