Date: Wed, 21 Apr 2021 14:13:41 +0000 From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 255290] _POSIX_C_SOURCE=200809 hides static_assert Message-ID: <bug-255290-99-83YYNSvpUv@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-255290-99@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255290 --- Comment #3 from Warner Losh <imp@FreeBSD.org> --- Further, the 2004 edition of the Open Group standard has the following in its Base Specification Issue 6, section 2.2.1. I imagine that similar text is in all the standards: ---- Quoted from https://pubs.opengroup.org/onlinepubs/007904975/functions/xsh_chap02_02.html by fair use: The _POSIX_C_SOURCE Feature Test Macro A POSIX-conforming application should ensure that the feature test macro _POSIX_C_SOURCE is defined before inclusion of any header. When an application includes a header described by IEEE Std 1003.1-2001, and when this feature test macro is defined to have the value 200112L: All symbols required by IEEE Std 1003.1-2001 to appear when the header is included shall be made visible. Symbols that are explicitly permitted, but not required, by IEEE Std 1003.1-2001 to appear in that header (including those in reserved name spaces) may be made visible. Additional symbols not required or explicitly permitted by IEEE Std 1003.1-2001 to be in that header shall not be made visible, except when enabled by another feature test macro. Identifiers in IEEE Std 1003.1-2001 may only be undefined using the #undef directive as described in Use and Implementation of Functions or The Name Space. These #undef directives shall follow all #include directives of any header in IEEE Std 1003.1-2001. ------- -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-255290-99-83YYNSvpUv>
