This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] stdint: Use __extension__ on long long constants


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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]