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



Quoting Andreas Schwab <schwab@suse.de>:

On Feb 25 2020, Dennis Lambe Jr. wrote:
+#  define __UINT64_C(c)        (__extension__ c ## ULL)

The expansion must be a preprocessor expression.

Oof, yeah, I see what you mean. GCC recognizes the __extension__ keyword at compile-time, but GCC's preprocessor doesn't recognize it and throws an error. This seems like a bug in GCC to me, and I don't know how to work around it to accomplish what I'm trying to do with this patch. Withdrawn until I can figure it out, unless someone else has an idea.

Thanks for taking the time to consider it


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