Fix for MINGW32 and clang on windows (#352) (#357)

* Update IXSocket.h

Avoid "conflicting declaration 'typedef SSIZE_T ssize_t'"

* Update IXUdpSocket.h

* Update IXNetSystem.cpp

ENOSPC and EAFNOSUPPORT are not defined for clang on windows
This commit is contained in:
flagarde 2022-02-11 12:49:33 +08:00 committed by GitHub
parent 7711cb1ae7
commit 127cc4a023
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -8,6 +8,12 @@
#include <cstdint> #include <cstdint>
#include <cstdio> #include <cstdio>
#ifdef _WIN32 #ifdef _WIN32
#ifndef EAFNOSUPPORT
#define EAFNOSUPPORT 102
#endif
#ifndef ENOSPC
#define ENOSPC 28
#endif
#include <vector> #include <vector>
#endif #endif

View File

@ -14,8 +14,10 @@
#ifdef _WIN32 #ifdef _WIN32
#include <basetsd.h> #include <basetsd.h>
#ifdef _MSC_VER
typedef SSIZE_T ssize_t; typedef SSIZE_T ssize_t;
#endif #endif
#endif
#include "IXCancellationRequest.h" #include "IXCancellationRequest.h"
#include "IXProgressCallback.h" #include "IXProgressCallback.h"

View File

@ -12,8 +12,10 @@
#ifdef _WIN32 #ifdef _WIN32
#include <basetsd.h> #include <basetsd.h>
#ifdef _MSC_VER
typedef SSIZE_T ssize_t; typedef SSIZE_T ssize_t;
#endif #endif
#endif
#include "IXNetSystem.h" #include "IXNetSystem.h"