Author: ed
Date: Mon Dec 26 18:49:56 2011
New Revision: 228900
URL: http://svn.freebsd.org/changeset/base/228900

Log:
  Add cdefs-magic to add optional C11 bits to headers.

Modified:
  head/sys/sys/cdefs.h

Modified: head/sys/sys/cdefs.h
==============================================================================
--- head/sys/sys/cdefs.h        Mon Dec 26 18:12:27 2011        (r228899)
+++ head/sys/sys/cdefs.h        Mon Dec 26 18:49:56 2011        (r228900)
@@ -609,11 +609,16 @@
 #define        __XSI_VISIBLE           0
 #define        __BSD_VISIBLE           0
 #define        __ISO_C_VISIBLE         1999
+#elif defined(_C11_SOURCE)     /* Localism to specify strict C11 env. */
+#define        __POSIX_VISIBLE         0
+#define        __XSI_VISIBLE           0
+#define        __BSD_VISIBLE           0
+#define        __ISO_C_VISIBLE         2011
 #else                          /* Default environment: show everything. */
 #define        __POSIX_VISIBLE         200809
 #define        __XSI_VISIBLE           700
 #define        __BSD_VISIBLE           1
-#define        __ISO_C_VISIBLE         1999
+#define        __ISO_C_VISIBLE         2011
 #endif
 #endif
 
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to