[PATCH] Use C99-compliant scanf under _GNU_SOURCE.

Zack Weinberg zackw@panix.com
Mon Feb 12 16:38:00 GMT 2018


On Mon, Feb 12, 2018 at 11:25 AM, Joseph Myers <joseph@codesourcery.com> wrote:
> On Sat, 10 Feb 2018, Zack Weinberg wrote:
>
>> +#if defined __USE_ISOC99 || defined __USE_XOPEN2K
>
> That's equivalent to just #ifdef __USE_ISOC99 (since __USE_XOPEN2K implies
> __USE_ISOC99; POSIX.1-2001 is based on C99).

Well, that certainly throws the question of how anyone could possibly
use the noncompliant vscanf into stark relief.

zw



More information about the Libc-alpha mailing list