From: Mike D. Lowis Date: Wed, 12 Aug 2015 15:15:22 +0000 (-0400) Subject: Add threading and atomics to the header file X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=56d9af573d1900d51743d81c9ca6353b4711362f;p=archive%2Fcarl.git Add threading and atomics to the header file --- 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 */