This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: _DEFAULT_SOURCE expected semantic
- From: Andreas Schwab <schwab at suse dot de>
- To: Adhemerval Zanella <adhemerval dot zanella at linaro dot org>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 10 Apr 2019 14:57:01 +0200
- Subject: Re: _DEFAULT_SOURCE expected semantic
- References: <a723396f-2b82-8c77-0c4a-51cd70df65dc@linaro.org>
On Apr 10 2019, Adhemerval Zanella <adhemerval.zanella@linaro.org> wrote:
> So _DEFAULT_SOURCE always defines -D_POSIX_C_SOURCE=200809L without
> implicit _XOPEN_SOURCE from glibc 2.19 to 2.30. Afaik there is no need to
> currently to add POSIX1.2017 support, so the question is whether
> glibc will continue to eforce -D_POSIX_C_SOURCE=200809L for
> _DEFAULT_SOURCE in future versions or if the flag will eventually be update
> whether/once a new POSIX1 version is required.
I think _DEFAULT_SOURCE should always be what is considered state of the
art, similar to gcc default for -std moving forward.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."