This is the mail archive of the
libstdc++@sources.redhat.com
mailing list for the libstdc++ project.
Re: getchar macro/decl conflict
- To: Phil Edwards <pedwards at disaster dot jaj dot com>
- Subject: Re: getchar macro/decl conflict
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Wed, 1 Nov 2000 09:12:38 -0800 (PST)
- cc: libstdc++ at sources dot redhat dot com
> + Looks like we need to #undef getchar, somewhere.
Yeah. The procedure:
-) add undefs in the file, as we did here:
libstdc++-v3/include/c/bits/std_cwctype
-) add any os-specific macros to force the non-macro def in the os's .h file
(see c/bits/include/std_cstring.h and config/os/gnu-linux/bits/os_defines)
> + Can the diag be updated to check if the number of arguments is 1, and
> if so, print "argument" instead of "arguments"?
haha. I'm in favor of kung-fu diagnostic messages, myself.
-benjamin