posix: semaphore: use ZRESTRICT
To better handle all possible definitions of restrict or __restrict keyword and avoid redefinition errors, use the ZRESTRICT pre-processor defined in toolchain.h Signed-off-by: Nicholas Lowell <nlowell@lexmark.com>
This commit is contained in:
parent
0d31403318
commit
c00b85b0e9
1 changed files with 2 additions and 2 deletions
|
@ -14,10 +14,10 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
int sem_destroy(sem_t *semaphore);
|
||||
int sem_getvalue(sem_t *restrict semaphore, int *restrict value);
|
||||
int sem_getvalue(sem_t *ZRESTRICT semaphore, int *ZRESTRICT value);
|
||||
int sem_init(sem_t *semaphore, int pshared, unsigned int value);
|
||||
int sem_post(sem_t *semaphore);
|
||||
int sem_timedwait(sem_t *restrict semaphore, struct timespec *restrict abstime);
|
||||
int sem_timedwait(sem_t *ZRESTRICT semaphore, struct timespec *ZRESTRICT abstime);
|
||||
int sem_trywait(sem_t *semaphore);
|
||||
int sem_wait(sem_t *semaphore);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue