mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-31 22:25:56 +00:00
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:
parent
45b7e69fef
commit
a24d7dff09
@ -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); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user