From 138a5300b035d0d9981fb023200fe16347b7cae3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 6 Nov 2001 11:07:43 +0000 Subject: [PATCH] Fixed inlcude/Math to compile under Windows. --- include/osg/Math | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osg/Math b/include/osg/Math index 52b7cd195..8114eec39 100644 --- a/include/osg/Math +++ b/include/osg/Math @@ -82,8 +82,8 @@ inline double DegreesToRadians(double angle) { return angle*M_PI/180.0; } inline double RadiansToDegrees(double angle) { return angle*180.0/M_PI; } #ifdef WIN32 -inline bool isNaN(float v) { return ::_isnan(v); } -inline bool isNaN(double v) { return ::isnan(v); } +inline bool isNaN(float v) { return ::_isnan(v)!=0; } +inline bool isNaN(double v) { return ::_isnan(v)!=0; } inline bool isInfinite(float v) { return !::_finite(v); } inline bool isInfinite(double v) { return !::_finite(v); } #else