[libcxx] r294902 - math: pull more C functions from std

Saleem Abdulrasool via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 12 09:37:46 PST 2017


Author: compnerd
Date: Sun Feb 12 11:37:45 2017
New Revision: 294902

URL: http://llvm.org/viewvc/llvm-project?rev=294902&view=rev
Log:
math: pull more C functions from std

The newer ucrt version provides the gamma meth routines.  Includede them
when building the library.

Modified:
    libcxx/trunk/include/math.h

Modified: libcxx/trunk/include/math.h
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/math.h?rev=294902&r1=294901&r2=294902&view=diff
==============================================================================
--- libcxx/trunk/include/math.h (original)
+++ libcxx/trunk/include/math.h Sun Feb 12 11:37:45 2017
@@ -1017,7 +1017,7 @@ copysign(_A1 __lcpp_x, _A2 __lcpp_y) _NO
     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 @@ 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 // !_LIBCPP_MSVCRT
+#endif // !defined(_LIBCPP_MSVCRT) || ((_VC_CRT_MAJOR_VERSION-0) >= 14)
 
 } // extern "C++"
 




More information about the cfe-commits mailing list