Author: ed
Date: Sat Jul 22 14:03:20 2017
New Revision: 321372
URL: https://svnweb.freebsd.org/changeset/base/321372

Log:
  MFC r320240:
  
    Use __ISO_C_VISIBLE, as opposed to testing __STDC_VERSION__.
  
    FreeBSD's C library uses __STDC_VERSION__ to determine whether the
    compiler provides language features specific to a certain version of the
    C standard. __ISO_C_VISIBLE is used to specify which library features
    need to be exposed.
  
    max_align_t currently uses __STDC_VERSION__, even though it should be
    using __ISO_C_VISIBLE to remain consistent with the rest of the headers
    in include/.

Modified:
  stable/11/include/stddef.h
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/include/stddef.h
==============================================================================
--- stable/11/include/stddef.h  Sat Jul 22 13:33:06 2017        (r321371)
+++ stable/11/include/stddef.h  Sat Jul 22 14:03:20 2017        (r321372)
@@ -62,7 +62,7 @@ typedef       ___wchar_t      wchar_t;
 #endif
 #endif
 
-#if __STDC_VERSION__ >= 201112L || __cplusplus >= 201103L
+#if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L
 #ifndef __CLANG_MAX_ALIGN_T_DEFINED
 typedef        __max_align_t   max_align_t;
 #define __CLANG_MAX_ALIGN_T_DEFINED
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to