This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


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

getchar macro/decl conflict


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.

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