diff options
author | ed <ed@FreeBSD.org> | 2017-07-22 14:03:20 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2017-07-22 14:03:20 +0000 |
commit | 96384050e436e9ae824b19d72c2125a1a6d7f6f7 (patch) | |
tree | 8fa34d038800e55294a559ee4ef596a351a50b78 /include | |
parent | ce5a9c569bd085c1bcf80b1b504ab1da8b166d97 (diff) | |
download | FreeBSD-src-96384050e436e9ae824b19d72c2125a1a6d7f6f7.zip FreeBSD-src-96384050e436e9ae824b19d72c2125a1a6d7f6f7.tar.gz |
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/.
Diffstat (limited to 'include')
-rw-r--r-- | include/stddef.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stddef.h b/include/stddef.h index 90baf07..88fbb93 100644 --- a/include/stddef.h +++ b/include/stddef.h @@ -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 |