This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: cheaders=c: Where are overloaded cmath fuctions?
Subject: Re: cheaders=c: Where are overloaded cmath fuctions?
Danny wrote:
>
> > Unlike cheaders=cstd model, cmath in cheaders=c model does not
contain
> > definitions of std C++98 math functions (except modf) overloaded
for float and
> > long double nor function versions of C99 classification macros.
>
benjamin wrote:
> You might want to hang on a bit. I am also working on this exact code,
> but for linux.
>
> I suggest submitting patches en masse, not piecemeal, when you have
> something working.
>
OK, the question that is important to me is whether the C++ cmath header
provides these functions or it is left to the C++ conforming C headers
distributed with C runtime. The latter has advantages to me as I try to
get the mingw32 C headers to near-conformancy. For example it allows
use of locally available C helper functions like _powi (double, int) and
C function versions of classification macros, eg __fpclassify(double)
rather than the generic solution used in cstd model.
Given the latter approach and the cstdio and the ginclude/stddef.h
patches I submitted earlier, I do have something working (with mingw)
apart from hiccoughs with keeping ginclude'd stddef.h typedefs out of
global namespace.
I'll wait to see the linux solution and follow that.
Danny
> -benjamin