Re: [AD] Problems with gcc 3.1

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 11 Oct 2001, salvador <salvador@xxxxxxxxxx> wrote:
> 
>   Now i tried to compile Allegro with gcc 3.1 and found a couple of
> problems:
> 
> 1) The declaration of inline friend functions including their body
> isn't allowed so it must be:
...
> Attached is patch for alinline.h to fix it (DOS format and gzipped).

Committed, finally.

> 2) The "fsqrt" function is a built-in function. I saw this name gives
> problems for Watcom and SGI too. I suggest renaming it to something
> like fixsqrt. For it I'm not sending patches because I don't know what
> exactly is the best.

Maybe rename, and then pull out the static inline trick?
Something like:

#ifndef ALLEGRO_NO_FIX_ALIASES

static inline fixed fsqrt(fixed x) { return fixsqrt(x); }
/* and the same thing for fhypot, fcos, fsin, etc. */

#endif

Implementation details would be like for `clear'.



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/