diff options
author | Martijn Berger <martijn.berger@gmail.com> | 2014-01-03 01:19:10 +0400 |
---|---|---|
committer | Martijn Berger <martijn.berger@gmail.com> | 2014-01-03 01:19:10 +0400 |
commit | 1c8a12ee61a00da103fe79bcc52f30a9a71bdc25 (patch) | |
tree | a2f7b158e96de33f64b2211d4cf0de4b1eaf4ca1 /intern | |
parent | d0c6f14c73473579885ed0658dca3e3b6559ad2f (diff) |
Fix T37987: MSVC 2013 has C99 headers and warns for out define hypot _hypot for good reason it seems
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/util/util_math.h | 2 | ||||
-rw-r--r-- | intern/iksolver/intern/TNT/tntmath.h | 2 | ||||
-rw-r--r-- | intern/smoke/intern/tnt/tnt_math_utils.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/intern/cycles/util/util_math.h b/intern/cycles/util/util_math.h index 851c67b1189..fdee1e90486 100644 --- a/intern/cycles/util/util_math.h +++ b/intern/cycles/util/util_math.h @@ -78,7 +78,7 @@ CCL_NAMESPACE_BEGIN #ifndef __KERNEL_GPU__ -#if(!defined(FREE_WINDOWS)) +#if (!defined(FREE_WINDOWS)) && (_MSC_VER < 1800) #define copysignf(x, y) ((float)_copysign(x, y)) #define hypotf(x, y) _hypotf(x, y) #define isnan(x) _isnan(x) diff --git a/intern/iksolver/intern/TNT/tntmath.h b/intern/iksolver/intern/TNT/tntmath.h index a1fef28075c..d55acb00d04 100644 --- a/intern/iksolver/intern/TNT/tntmath.h +++ b/intern/iksolver/intern/TNT/tntmath.h @@ -34,7 +34,7 @@ // conventional functions required by several matrix algorithms -#ifdef _WIN32 +#if (defined _WIN32) && (_MSC_VER < 1800) #define hypot _hypot #endif diff --git a/intern/smoke/intern/tnt/tnt_math_utils.h b/intern/smoke/intern/tnt/tnt_math_utils.h index e0bf4839733..d96a0aefcd7 100644 --- a/intern/smoke/intern/tnt/tnt_math_utils.h +++ b/intern/smoke/intern/tnt/tnt_math_utils.h @@ -7,7 +7,7 @@ /* needed for fabs, sqrt() below */ #include <cmath> -#ifdef _WIN32 +#if (defined _WIN32) && (_MSC_VER < 1800) #define hypot _hypot #endif |