RE: [AD] sincos |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
> Does this mean that all ports of gcc have a __sincos()
No idea. Maybe something to add a configure test for ?
I have Linux 2.2.10, glibc 2.[01] (Can't remember what exactly).
I think it's a glibc thing IRRC.
> There is also the problem of #including <math.h>. Since
> Allegro doesn't
> do that now, I think it's a pity to introduce it. What do you think
> about putting the whole thing in math.c?
There is a define ALLEGRO_NO_STD_HEADERS, which might be used
for this ?
> > --- include/allegro/aldjgpp.h.sincos Sun Oct 28 10:08:10 2001
> > +++ include/allegro/aldjgpp.h Sun Oct 28 10:12:36 2001
> [snip]
> > +AL_INLINE(void, _al_sincos, (double value, double *sine,
> double *cosine),
> > +{
> > + sincos(cosine, sine, value);
> > +})
>
> Isn't this going to collide with the version in al386gcc.h?
Ahem. I had done some define trickery to detect if a specific
version was defined, and define the generic version if not. It
should work, unless it's rotted enough :)
--
Vincent Penquerc'h
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |