This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 3.0 wierdness
Finny Merrill wrote:-
> printf is a macro?
Glibc autodetects later versions of GCC, and makes it a macro if
you're using one. It's not a GCC issue.
> HOW does printf being a macro work
With a bit of magic.
> ESPECIALLY since we can no longer put preprocessor constants in
> printf statements!
You can do that. You can't put #if in a macro, and therefore in
printf statements. You could always #undef it, or put parens around
it like Joe suggested.
Neil.