From: Lectem Date: Wed, 20 Jan 2016 21:15:48 +0000 (-0500) Subject: remove restrict keyword in arpa/inet.h fixes #248 X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=097095b55758daa4236f3d5eaf4ad4d3f0209c28;p=corbenik%2Fctrulib.git remove restrict keyword in arpa/inet.h fixes #248 This causes problems for non-c99 and c++ projects. --- diff --git a/libctru/include/arpa/inet.h b/libctru/include/arpa/inet.h index 5e044a9..5c27b1e 100644 --- a/libctru/include/arpa/inet.h +++ b/libctru/include/arpa/inet.h @@ -31,8 +31,8 @@ extern "C" { int inet_aton(const char *cp, struct in_addr *inp); char* inet_ntoa(struct in_addr in); - 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); #ifdef __cplusplus }