Mail Archives: djgpp-workers/2000/12/13/12:25:18
On Wed, 13 Dec 2000, Stephen Silver wrote:
> >Then why doesn't the C++ compiler disable the macros in its <ctype>
> >(or is it <cctype>?) header?
>
> At the moment, the <cctype> supplied with DJGPP just #includes <ctype.h>.
<cctype> 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 <cctype> 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 <cctype>, for example.
- Raw text -