more [shadow] problems.
Nathan Myers
ncm@cantrip.org
Fri May 26 17:42:00 GMT 2000
On Fri, May 26, 2000 at 03:15:13PM -0700, Steven King wrote:
> On Fri, 26 May 2000, Nathan Myers wrote:
> >
> > That's why we were talking about adding declarations of extensions,
> > girded about with "#ifdef __USE_GROTTY_EXTENSION".
>
> You mean shadow/math.h is going to have to do something like
>
> #if defined GLIBC // whatever
> #if defined __USE_SVID
> using _C_legacy::matherr;
> ...
> #endif
> #elif defined SOLARIS
> using _C_legacy::suncruft;
> ...
> #endif
>
> that's gonna be ugly.
Close. We'll add
#include <bits/features.h>
...
#if defined(__USE_SVID)
using _C_legacy::matherr;
#endif
just like you see in Glibc headers. Anybody who really wants
Sun cruft can send in a patch to add
#if defined __USE_SUN_CRUFT
using _C_legacy::suncruft;
#endif
too. Yes, it's ugly, but it's good ugly, like the uglified names.
Nathan Myers
ncm at cantrip dot org
More information about the Libstdc++
mailing list