#define csp_without_prefix
#include <libcsp/csp.h>
#include <unistd.h>
In file included from /usr/local/include/libcsp/csp.h:28,
from sum.c:18:
/usr/include/unistd.h:1005:13: error: expected identifier or ‘(’ before ‘do’
1005 | extern void sync (void) __THROW;
| ^~~~
/usr/include/unistd.h:1005:13: error: expected identifier or ‘(’ before ‘while’
1005 | extern void sync (void) __THROW;
- But if you reverse the order, it works.
#define csp_without_prefix
#include <unistd.h>
#include <libcsp/csp.h>
How can solve this problem? Am i use "csp_async" and "csp_sync" not "sync" and "async".
Thankyou for reading this issue
In file included from /usr/local/include/libcsp/csp.h:28, from sum.c:18: /usr/include/unistd.h:1005:13: error: expected identifier or ‘(’ before ‘do’ 1005 | extern void sync (void) __THROW; | ^~~~ /usr/include/unistd.h:1005:13: error: expected identifier or ‘(’ before ‘while’ 1005 | extern void sync (void) __THROW;How can solve this problem? Am i use "csp_async" and "csp_sync" not "sync" and "async".
Thankyou for reading this issue