Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Mueller <nexyon@gmail.com>2010-03-20 22:51:38 +0300
committerJoerg Mueller <nexyon@gmail.com>2010-03-20 22:51:38 +0300
commitb6a111a6db9dd67e4aabaa366e5c2204e222e7cc (patch)
tree819d7fe30f220d317f969d57c52915dc62be9510 /source/blender/blenlib
parentbe8c398191ea7af2b44b77fa602bbcef0d64f48b (diff)
Hopefully another fix for MSVC...
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/BLI_math_base.h4
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