]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Use __ISO_C_VISIBLE, as opposed to testing __STDC_VERSION__.
authorEd Schouten <ed@FreeBSD.org>
Thu, 22 Jun 2017 18:39:52 +0000 (18:39 +0000)
committerEd Schouten <ed@FreeBSD.org>
Thu, 22 Jun 2017 18:39:52 +0000 (18:39 +0000)
commitf49db4cf697b2e851b2ddcf1d2bbf4260f904dc5
treeb89cb51a6b4f5aca0a370664d6f0358d005e668c
parent3385c745395914072e2c20a0d4e8e4db387bd61f
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/.

Reviewed by: dim
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D11303
include/stddef.h