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: Michael Goffioul
Subject: MSVC compiler support [patch 25]: INFINITE
Date: Tue, 17 Oct 2006 21:56:44 +0200
User-agent: Thunderbird 1.5.0.7 (Windows/20060909)

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()

reply via email to

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