Date: Wed, 13 Dec 2000 16:21:06 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Stephen Silver cc: djgpp-workers AT delorie DOT com Subject: Re: ctype.h in C++ In-Reply-To: <001e01c06508$a04b3140$799a7ed4@oemcomputer> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 13 Dec 2000, Stephen Silver wrote: > >Then why doesn't the C++ compiler disable the macros in its > >(or is it ?) header? > > At the moment, the supplied with DJGPP just #includes . is not part of the DJGPP project, it is part of the GCC port. I wonder how come GCC maintainers didn't pay attention to this issue. I wonder what happens with other C libraries. Does glibc, for instance, define inline versions depending on __cplusplus? > Disabling the macros in would cause the non-inline versions > of these functions to be used, so it's not an ideal solution. You don't need to disable macros by #undef. You could provide inline versions in , for example.