cmath: adjust math forwards for Windows

The newer versions of ucrt have the math routines.  Use the CRT version
to determine if we should include the math routines.  Fixes two tests
for Windows.

llvm-svn: 294899
This commit is contained in:
Saleem Abdulrasool 2017-02-12 16:44:17 +00:00
parent 45b7e69fef
commit a24d7dff09

View File

@ -495,7 +495,7 @@ using ::cbrtl;
using ::copysignl;
#ifndef _LIBCPP_MSVCRT
#if !defined(_LIBCPP_MSVCRT) || (_VC_CRT_MAJOR_VERSION-0) >= 14
using ::erfl;
using ::erfcl;
using ::exp2l;
@ -526,7 +526,7 @@ using ::scalblnl;
using ::scalbnl;
using ::tgammal;
using ::truncl;
#endif // !_LIBCPP_MSVCRT
#endif // !defined(_LIBCPP_MSVCRT) || (_VC_CRT_MAJOR_VERSION-0) >= 14
#if _LIBCPP_STD_VER > 14
inline _LIBCPP_INLINE_VISIBILITY float hypot( float x, float y, float z ) { return sqrt(x*x + y*y + z*z); }