getchar macro/decl conflict

Phil Edwards pedwards@disaster.jaj.com
Wed Nov 1 09:01:00 GMT 2000


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.


More information about the Libstdc++ mailing list