From 56d9af573d1900d51743d81c9ca6353b4711362f Mon Sep 17 00:00:00 2001 From: "Mike D. Lowis" Date: Wed, 12 Aug 2015 11:15:22 -0400 Subject: [PATCH] Add threading and atomics to the header file --- source/libc.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/libc.h b/source/libc.h index f79f938..cac2cb2 100644 --- a/source/libc.h +++ b/source/libc.h @@ -434,6 +434,18 @@ long iowrite(iobuf*, void*, long); int iovprint(iobuf*, char*, va_list); #endif +/* + * Threads and Atomics + */ +#if (__STDC_VERSION__ >= 201112L) + #ifndef __STDC_NO_ATOMICS__ + #include + #endif + #ifndef __STDC_NO_THREADS__ + #include + #endif +#endif + /* * New Features */ -- 2.54.0