This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] stdint: Use __extension__ on long long constants
* Dennis Lambe, Jr.:
> Quoting Florian Weimer <fweimer@redhat.com>:
>
>> I think users who use <stdint.h> in C89 mode expect such warnings
>> because such usages cannot be made compatible with C89 compilers
>> without long long support.
>
> Existing practice suggests differently. Every usage of 'long long' in
> the headers under stdlib/ is preceded by an __extention__ keyword to
> suppress those warnings. This was the only instance I could find of a
> stdlib header not suppressing that warning.
None of those are in macros. These macros are special in the sense that
they require the long long extension only on 32-bit targets.
Thanks,
Florian