From b6a111a6db9dd67e4aabaa366e5c2204e222e7cc Mon Sep 17 00:00:00 2001 From: Joerg Mueller Date: Sat, 20 Mar 2010 19:51:38 +0000 Subject: [PATCH] Hopefully another fix for MSVC... --- source/blender/blenlib/BLI_math_base.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h index c143c44c594..28c5026910f 100644 --- a/source/blender/blenlib/BLI_math_base.h +++ b/source/blender/blenlib/BLI_math_base.h @@ -69,6 +69,9 @@ extern "C" { #ifndef M_LN10 #define M_LN10 2.30258509299404568402 #endif +#ifndef NAN +#define NAN (0.0/0.0) +#endif #ifndef sqrtf #define sqrtf(a) ((float)sqrt(a)) @@ -120,6 +123,7 @@ extern "C" { #ifndef FREE_WINDOWS #define isnan(n) _isnan(n) #define finite _finite +#define isfinite(n) _finite(n) #endif #endif