diff options
author | Joerg Mueller <nexyon@gmail.com> | 2010-03-20 22:51:38 +0300 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2010-03-20 22:51:38 +0300 |
commit | b6a111a6db9dd67e4aabaa366e5c2204e222e7cc (patch) | |
tree | 819d7fe30f220d317f969d57c52915dc62be9510 /source/blender/blenlib/BLI_math_base.h | |
parent | be8c398191ea7af2b44b77fa602bbcef0d64f48b (diff) |
Hopefully another fix for MSVC...
Diffstat (limited to 'source/blender/blenlib/BLI_math_base.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_base.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |