mingw compile fix / remove restrict in inet_* functions
This commit is contained in:
parent
968cc5c1c4
commit
b36a2d1faa
@ -8,12 +8,12 @@
|
||||
|
||||
// mingw does not have those
|
||||
#if defined(_WIN32) && defined(__GNUC__)
|
||||
const char* inet_ntop(int af, const void* restrict src, char* restrict dst, socklen_t size)
|
||||
const char* inet_ntop(int af, const void* src, char* dst, socklen_t size)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
int inet_pton(int af, const char* restrict src, void* restrict dst)
|
||||
int inet_pton(int af, const char* src, void* dst)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
@ -55,8 +55,8 @@ struct pollfd
|
||||
|
||||
// mingw does not have those
|
||||
#if defined(_WIN32) && defined(__GNUC__)
|
||||
const char* inet_ntop(int af, const void* restrict src, char* restrict dst, socklen_t size);
|
||||
int inet_pton(int af, const char* restrict src, void* restrict dst);
|
||||
const char* inet_ntop(int af, const void* src, char* dst, socklen_t size);
|
||||
int inet_pton(int af, const char* src, void* dst);
|
||||
#endif
|
||||
|
||||
namespace ix
|
||||
|
Loading…
Reference in New Issue
Block a user