mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
5dd7ddb9ea
These definitions were causing issues with building LLVM. It is possible they also caused crashes we've seen with our MacOS ARM64 OpenMP support.
17 lines
441 B
C
17 lines
441 B
C
#ifndef NSYNC_FUTEX_INTERNAL_H_
|
|
#define NSYNC_FUTEX_INTERNAL_H_
|
|
#include "libc/calls/struct/timespec.h"
|
|
#include "libc/dce.h"
|
|
COSMOPOLITAN_C_START_
|
|
|
|
#ifndef __cplusplus
|
|
#define _FUTEX_ATOMIC(x) _Atomic(x)
|
|
#else
|
|
#define _FUTEX_ATOMIC(x) x
|
|
#endif
|
|
|
|
int nsync_futex_wake_(_FUTEX_ATOMIC(int) *, int, char);
|
|
int nsync_futex_wait_(_FUTEX_ATOMIC(int) *, int, char, const struct timespec *);
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* NSYNC_FUTEX_INTERNAL_H_ */
|