This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
getchar macro/decl conflict
- To: libstdc++ at sources dot redhat dot com
- Subject: getchar macro/decl conflict
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Wed, 1 Nov 2000 12:07:28 -0500
Current CVS yields
In file included from [yadda]/include/c/bits/std_cwchar.h:40,
from [yadda]/include/bits/std_iosfwd.h:37,
from [yadda]/include/bits/std_complex.h:40,
from [yadda]/src/complex.cc:30:
[yadda]/include/c/bits/std_cstdio.h:78:30: macro "getchar"
passed 1 arguments, but takes just 0
gmake[3]: *** [complex.lo] Error 1
when building src/complex.cc. Two observations:
+ Looks like we need to #undef getchar, somewhere.
+ Can the diag be updated to check if the number of arguments is 1, and
if so, print "argument" instead of "arguments"?
Yeah, I'm a stickler for grammar. :-)
--
pedwards at disaster dot jaj dot com | pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools. Fools are protected by more capable fools.