gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] Re: Building GCL 2.6.1 on FreeBSD 4.8


From: Chris Hall
Subject: [Gcl-devel] Re: Building GCL 2.6.1 on FreeBSD 4.8
Date: Fri, 14 May 2004 15:09:40 -1000
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.2 (gnu/linux)

Magnus Henoch <address@hidden> writes:

>> ----------( start
>> #ifdef IN_NUM_CO
>> #ifdef HAVE_ISNORMAL
>> #define _GNU_SOURCE
>> #include <math.h>
>> #define ISNORMAL(a) isnormal(a)
>> #else
>> #ifdef HAVE_IEEEFP
>> #include <ieeefp.h>
>> #define ISNORMAL(a) (fpclass(a)>=FP_NZERO)
>> #else
>> #error "No isnormal found"
>> #endif
>> #endif
>> #endif
>> ----------( end
>
> Try replacing
>
> #error "No isnormal found"
>
> with
>
> #include <math.h>
> #define ISNORMAL(a) (finite(a) && (a) != 0.0)
>
> That worked for me on OpenBSD.
>
> (gclincl.h will be overwritten every time you run configure;  you can
> change gclincl.h.in instead to make the change persist)
>
>> Is there specific version of float.h that I need to use?
>
> isnormal was added to FreeBSD in version 5.1, but an upgrade should
> hopefully not be necessary.
>
> Regards,
> Magnus

Many thanks!  That did it.

-- 
We learn from history that we do not learn from history.
-- Georg Friedrich Wilhelm Hegel

Attachment: pgpQgtv9Z_aU1.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]