This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Define __STDC_NO_THREADS__


We had some discussion in December about how to implement C11
<threads.h> (an optional feature); I've now created bug 14092 with a
link to that discussion.  Since we're coming up to the freeze for 2.16
and don't so far have a <threads.h> implementation, I propose this
patch to define __STDC_NO_THREADS__ to indicate that <threads.h> is
not yet supported.  Tested x86_64.

2012-05-10  Joseph Myers  <joseph@codesourcery.com>

	* include/stdc-predef.h (__STDC_NO_THREADS__): Define.

diff --git a/include/stdc-predef.h b/include/stdc-predef.h
index ef10c16..146bc5c 100644
--- a/include/stdc-predef.h
+++ b/include/stdc-predef.h
@@ -33,4 +33,7 @@
 /* wchar_t uses ISO 10646-1 (2nd ed., published 2000-09-15) / Unicode 3.1.  */
 #define __STDC_ISO_10646__		200009L
 
+/* We do not support C11 <threads.h>.  */
+#define __STDC_NO_THREADS__		1
+
 #endif

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]