forked from OSchip/llvm-project
math: correct the MSVCRT condition
Fixes a number of tests in the testsuite on Windows. llvm-svn: 295330
This commit is contained in:
parent
305b4f2ba9
commit
3d99648f00
|
@ -398,7 +398,7 @@ using ::cbrtf;
|
|||
using ::copysign;
|
||||
using ::copysignf;
|
||||
|
||||
#if !defined(_LIBCPP_MSVCRT) || ((_VC_CRT_NAJOR_VERSION-0) >= 14)
|
||||
#if !(defined(_LIBCPP_MSVCRT) && ((_VC_CRT_NAJOR_VERSION-0) < 14))
|
||||
using ::erf;
|
||||
using ::erff;
|
||||
using ::erfc;
|
||||
|
@ -435,7 +435,7 @@ using ::lrint;
|
|||
using ::lrintf;
|
||||
using ::lround;
|
||||
using ::lroundf;
|
||||
#endif // _LIBCPP_MSVCRT
|
||||
#endif // !(defined(_LIBCPP_MSVCRT) && ((_VC_CRT_NAJOR_VERSION-0) < 14))
|
||||
|
||||
using ::nan;
|
||||
using ::nanf;
|
||||
|
|
|
@ -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++"
|
||||
|
||||
|
|
Loading…
Reference in New Issue