diff options
author | Joerg Mueller <nexyon@gmail.com> | 2010-03-20 23:00:15 +0300 |
---|---|---|
committer | Joerg Mueller <nexyon@gmail.com> | 2010-03-20 23:00:15 +0300 |
commit | d904da1d03f2312944dc1b66215326aeefc0ec55 (patch) | |
tree | 5d914bda187a6786dfee2b857dde14c93a627351 | |
parent | b6a111a6db9dd67e4aabaa366e5c2204e222e7cc (diff) |
Yet another try to get NaN working on MSVC.
-rw-r--r-- | source/blender/blenlib/BLI_math_base.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h index 28c5026910f..cf3fda8ad36 100644 --- a/source/blender/blenlib/BLI_math_base.h +++ b/source/blender/blenlib/BLI_math_base.h @@ -70,7 +70,8 @@ extern "C" { #define M_LN10 2.30258509299404568402 #endif #ifndef NAN -#define NAN (0.0/0.0) +static __const char __qnan__[8] = { 0, 0, 0, 0, 0, 0, 0xf8, 0x7f }; +#define NAN (*(__const double *) __qnan__) #endif #ifndef sqrtf |