From b36a2d1faa00fe3a1ba319085b0aef87233ba387 Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Fri, 19 Mar 2021 10:58:38 -0700 Subject: [PATCH] mingw compile fix / remove restrict in inet_* functions --- ixwebsocket/IXNetSystem.cpp | 4 ++-- ixwebsocket/IXNetSystem.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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