On Sun, Aug 30, 2020 at 05:18:43PM +0000, m...@netbsd.org wrote: > On Sun, Aug 30, 2020 at 06:09:47PM +0200, Joerg Sonnenberger wrote: > > On Sun, Aug 30, 2020 at 12:00:33PM +0000, co...@sdf.org wrote: > > > Move the big "if _NETBSD_SOURCE" chunk to the "Implementation defined" > > > section. > > > Makes "at_quick_exit" and others visible for strict C/C++. > > > > alloca is not part of POSIX. > > > > Joerg > > Hmm, should I just remove lines 349, 139-140? > > #if defined(_POSIX_C_SOURCE) || defined(_XOPEN_SOURCE) || \ > defined(_NETBSD_SOURCE) > > ... bunch of properly guarded things that need no additional guards ... > > #endif /* _POSIX_C_SOURCE || _XOPEN_SOURCE || _NETBSD_SOURCE */
I can't tell since I don't know what problem you are trying to fix. Note that strict C++ support is supposed to hide all things not in the C++ standard or required to implement it. alloca certainly does not belong into that. Joerg