]> Chaos Git - corbenik/ctrulib.git/commitdiff
remove restrict keyword in arpa/inet.h fixes #248
authorLectem <lectem@gmail.com>
Wed, 20 Jan 2016 21:15:48 +0000 (16:15 -0500)
committerLectem <lectem@gmail.com>
Wed, 20 Jan 2016 21:15:48 +0000 (16:15 -0500)
This causes problems for non-c99 and c++ projects.

libctru/include/arpa/inet.h

index 5e044a9c30a37a70fbb2c0ecbd29e7e87c8a4c17..5c27b1e047e042120e97c9d576959782e49774a4 100644 (file)
@@ -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
 }