math: pull more C functions from std
The newer ucrt version provides the gamma meth routines. Includede them
when building the library.
llvm-svn: 294902
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 2fe5658d9a6e197c49962c519e1e448c75ee81b6
diff --git a/include/math.h b/include/math.h
index 8dfac13..41bfda3 100644
--- a/include/math.h
+++ b/include/math.h
@@ -1017,7 +1017,7 @@
return ::copysign((__result_type)__lcpp_x, (__result_type)__lcpp_y);
}
-#ifndef _LIBCPP_MSVCRT
+#if !defined(_LIBCPP_MSVCRT) || ((_VC_CRT_MAJOR_VERSION-0) >= 14)
// erf
@@ -1401,7 +1401,7 @@
typename std::enable_if<std::is_integral<_A1>::value, double>::type
trunc(_A1 __lcpp_x) _NOEXCEPT {return ::trunc((double)__lcpp_x);}
-#endif // !_LIBCPP_MSVCRT
+#endif // !defined(_LIBCPP_MSVCRT) || ((_VC_CRT_MAJOR_VERSION-0) >= 14)
} // extern "C++"