diff options
| author | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-02-16 15:47:50 +0000 |
|---|---|---|
| committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2017-02-16 15:47:50 +0000 |
| commit | 3d99648f00b0c96a6620b29e3648e5482344c188 (patch) | |
| tree | dcf45f73f91495e217c3dc8a8fe48d9b69ca3f18 /libcxx/include/math.h | |
| parent | 305b4f2ba9f93b692863b1a1b777e4fdc4ba6e01 (diff) | |
| download | bcm5719-llvm-3d99648f00b0c96a6620b29e3648e5482344c188.tar.gz bcm5719-llvm-3d99648f00b0c96a6620b29e3648e5482344c188.zip | |
math: correct the MSVCRT condition
Fixes a number of tests in the testsuite on Windows.
llvm-svn: 295330
Diffstat (limited to 'libcxx/include/math.h')
| -rw-r--r-- | libcxx/include/math.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/math.h b/libcxx/include/math.h index 18dd3cc49d3..54fd6f7d81b 100644 --- a/libcxx/include/math.h +++ b/libcxx/include/math.h @@ -1020,7 +1020,7 @@ copysign(_A1 __lcpp_x, _A2 __lcpp_y) _NOEXCEPT return ::copysign((__result_type)__lcpp_x, (__result_type)__lcpp_y); } -#if !defined(_LIBCPP_MSVCRT) || ((_VC_CRT_MAJOR_VERSION-0) >= 14) +#if !(defined(_LIBCPP_MSVCRT) && ((_VC_CRT_NAJOR_VERSION-0) < 14)) // erf @@ -1404,7 +1404,7 @@ inline _LIBCPP_INLINE_VISIBILITY typename std::enable_if<std::is_integral<_A1>::value, double>::type trunc(_A1 __lcpp_x) _NOEXCEPT {return ::trunc((double)__lcpp_x);} -#endif // !defined(_LIBCPP_MSVCRT) || ((_VC_CRT_MAJOR_VERSION-0) >= 14) +#endif // !(defined(_LIBCPP_MSVCRT) && ((_VC_CRT_NAJOR_VERSION-0) < 14)) } // extern "C++" |

