octave-maintainers
[Top][All Lists]
Advanced

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

MSVC compiler support [patch 25]: INFINITE


From: John W. Eaton
Subject: MSVC compiler support [patch 25]: INFINITE
Date: Wed, 25 Oct 2006 21:57:39 -0400

On 17-Oct-2006, Michael Goffioul wrote:

| Some Win32 header defines INFINITE, so undefine it
| Index: liboctave/randpoisson.c
| ===================================================================
| RCS file: /cvs/octave/liboctave/randpoisson.c,v
| retrieving revision 1.2
| diff -p -c -r1.2 randpoisson.c
| *** liboctave/randpoisson.c   24 Apr 2006 19:13:08 -0000      1.2
| --- liboctave/randpoisson.c   17 Oct 2006 11:07:42 -0000
| ***************
| *** 22,27 ****
| --- 22,30 ----
|   #include "randpoisson.h"
|   
|   #undef NAN
| + #ifdef _MSC_VER
| + #undef INFINITE
| + #endif
|   #define NAN octave_NaN
|   #define INFINITE lo_ieee_isinf
|   #define RUNI oct_randu()

I made this change, but just undefined it unconditionally.

Thanks,

jwe


reply via email to

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