Date: Sat, 14 Aug 2021 01:04:30 +0000 From: bugzilla-noreply@freebsd.org To: standards@FreeBSD.org Subject: [Bug 257827] Providing _POSIX_C_SOURCE causes some C++ headers to fail Message-ID: <bug-257827-99-KLMyYqFaJI@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-257827-99@https.bugs.freebsd.org/bugzilla/> References: <bug-257827-99@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257827 Warner Losh <imp@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |imp@FreeBSD.org --- Comment #1 from Warner Losh <imp@FreeBSD.org> --- _POSIX_C_SOURCE=3D200112 is only valid for 'C' code, not 'C++'. It specifically requires a C99 compiler as well, and only makes c99 defined functions visible (and a few others that aren't relevant here). isascii is marked as XSI in the POSIX standard and ctypes.h says that it mu= st define the proper feature test macros (in this case _XOPEN_SOURCE must be defined to 700) before it is visible. So I'm thinking this isn't a bug in two different ways: it's not C and even= if it were, the proper _XOPEN_SOURCE macro isn't defined when you've asked for strict POSIX compliance. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257827-99-KLMyYqFaJI>