Cannot use in c++ (clang++)
I'm getting following error when i try to compile using your sdk:
In file included from /home/seb5594/git/PS4-SDK//libPS4/include/ps4.h:11: /home/seb5594/git/PS4-SDK//libPS4/include/network.h:56:78: error: expected ')' extern int (*sceNetGetsockopt)(int s, int level, int optname, void *restrict optval, soc... ^ /home/seb5594/git/PS4-SDK//libPS4/include/network.h:56:31: note: to match this '(' extern int (*sceNetGetsockopt)(int s, int level, int optname, void *restrict optval, soc... ^ 1 error generated. Makefile:33: recipe for target 'build/main.o' failed make: *** [build/main.o] Error 1
According to https://en.wikipedia.org/wiki/Restrict you may be able to change *restrict to *__restrict__ to get it to compile. Or maybe just remove restrict entirely, since it's really just an optimization hint.