]> git.mdlowis.com Git - archive/carl.git/commitdiff
Add threading and atomics to the header file
authorMike D. Lowis <mike.lowis@gentex.com>
Wed, 12 Aug 2015 15:15:22 +0000 (11:15 -0400)
committerMike D. Lowis <mike.lowis@gentex.com>
Wed, 12 Aug 2015 15:15:22 +0000 (11:15 -0400)
source/libc.h

index f79f938e736646812f4c20be205716f61c7d37d9..cac2cb2ac7ed521c0abb09392a6adb7353193e68 100644 (file)
@@ -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 <stdatomic.h>
+    #endif
+    #ifndef __STDC_NO_THREADS__
+        #include <threads.h>
+    #endif
+#endif
+
 /*
  * New Features
  */