summaryrefslogtreecommitdiff
path: root/include/threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/threads.h')
-rw-r--r--include/threads.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/threads.h b/include/threads.h
index 0e5836c1..01794826 100644
--- a/include/threads.h
+++ b/include/threads.h
@@ -51,7 +51,9 @@ void thrd_yield(void);
thrd_t thrd_current(void);
int thrd_equal(thrd_t, thrd_t);
+#ifndef __cplusplus
#define thrd_equal(A, B) ((A) == (B))
+#endif
void call_once(once_flag *, void (*)(void));