mingw compile fix / remove restrict in inet_* functions
This commit is contained in:
		| @@ -8,12 +8,12 @@ | |||||||
|  |  | ||||||
| // mingw does not have those | // mingw does not have those | ||||||
| #if defined(_WIN32) && defined(__GNUC__) | #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; |     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; |     return -1; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -55,8 +55,8 @@ struct pollfd | |||||||
|  |  | ||||||
| // mingw does not have those | // mingw does not have those | ||||||
| #if defined(_WIN32) && defined(__GNUC__) | #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); | ||||||
| int inet_pton(int af, const char* restrict src, void* restrict dst); | int inet_pton(int af, const char* src, void* dst); | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
| namespace ix | namespace ix | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user