octave-maintainers
[Top][All Lists]
Advanced

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

Re: cquad.cc compilation error: INFINITY undefined


From: Michael Goffioul
Subject: Re: cquad.cc compilation error: INFINITY undefined
Date: Wed, 3 Nov 2010 06:54:41 +0000

On Tue, Nov 2, 2010 at 11:15 PM, John W. Eaton <address@hidden> wrote:
> On  2-Nov-2010, Michael Goffioul wrote:
>
> | I reached a compilation error with MSVC in cquad.cc, because INFINITY is
> | not defined. Looking on the web, it seems that something like
> |
> | #ifndef INFINITY
> | #define INFINITY octave_Float_Inf
> | #endif
> |
> | Could anybody confirm this is functionally equivalent?
>
> Yes, except that I don't see any float values in cquad, only doubles
> so I think you want octave_Inf, not octave_Float_Inf.
>
> I checked in the following change.
>
>  http://hg.savannah.gnu.org/hgweb/octave/rev/c08e9d4e54c7

While you're at it, you might also want to add

#ifdef HAVE__COPYSIGN
#define copysign _copysign
#endif

at the beginning of cquad.cc, as it uses copysign unconditionally.

Michael.



reply via email to

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