diff --git a/ixwebsocket/IXNetSystem.cpp b/ixwebsocket/IXNetSystem.cpp index d9ad45b2..2b9baa40 100644 --- a/ixwebsocket/IXNetSystem.cpp +++ b/ixwebsocket/IXNetSystem.cpp @@ -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; } diff --git a/ixwebsocket/IXNetSystem.h b/ixwebsocket/IXNetSystem.h index 948286ac..384e9b1b 100644 --- a/ixwebsocket/IXNetSystem.h +++ b/ixwebsocket/IXNetSystem.h @@ -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