This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Darwin vs. libstdc++
- To: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- Subject: Re: Darwin vs. libstdc++
- From: Phil Edwards <pedwards at disaster dot jaj dot com>
- Date: Tue, 9 Oct 2001 13:32:21 -0400
- Cc: gcc at gcc dot gnu dot org
- References: <F800024E-BC81-11D5-B475-003065F97F7C@waitaki.otago.ac.nz>
On Tue, Oct 09, 2001 at 07:50:47PM +1300, Bryce McKinlay wrote:
> /Users/bryce/cvs/gcc/build/powerpc-apple-
> darwin1.4/libstdc++-v3/include/bits/std_cctype.h:59: `iscntrl' not
> declared
> [ blah blah blah ]
>
> It seems that libstdc++ expects these ctype declarations to be real
> functions, but darwin's /usr/include/ctype.h only defines them as
> macros! Apparently every other platform that libstdc++ must declare
> these as functions, so this is a bug with darwin?
Certain entities in the standard C library are allowed to be either a
macro or a function; in the standard C++ library they are required to be
a function. (Since macros don't obey scope and thus have a tendency to
appear where they oughtn't.)
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams