[PATCH] stdint: Use __extension__ on long long constants
Andreas Schwab
schwab@suse.de
Tue Feb 25 09:19:00 GMT 2020
On Feb 25 2020, Dennis Lambe Jr. wrote:
> diff --git a/stdlib/stdint.h b/stdlib/stdint.h
> index 2df07e485b..9fa45672db 100644
> --- a/stdlib/stdint.h
> +++ b/stdlib/stdint.h
> @@ -106,8 +106,8 @@ typedef __uintmax_t uintmax_t;
> # define __INT64_C(c) c ## L
> # define __UINT64_C(c) c ## UL
> # else
> -# define __INT64_C(c) c ## LL
> -# define __UINT64_C(c) c ## ULL
> +# define __INT64_C(c) (__extension__ c ## LL)
> +# define __UINT64_C(c) (__extension__ c ## ULL)
The expansion must be a preprocessor expression.
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."
More information about the Libc-alpha
mailing list