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
3 changed files with 10 additions and 0 deletions

View File

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