[libcxx-commits] [PATCH] D92379: [libcxx] Apply msvcrt specific exception for lgamma() to mingw configurations, too
Martin Storsjö via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Dec 1 03:40:08 PST 2020
mstorsjo created this revision.
mstorsjo added reviewers: libc++, amccarth.
Herald added a project: libc++.
Herald added 1 blocking reviewer(s): libc++.
mstorsjo requested review of this revision.
This fixes linking code that uses bits of the <random> header on mingw targets.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D92379
Files:
libcxx/include/random
Index: libcxx/include/random
===================================================================
--- libcxx/include/random
+++ libcxx/include/random
@@ -4035,12 +4035,12 @@
{return !(__x == __y);}
};
-#ifndef _LIBCPP_MSVCRT
+#ifndef _LIBCPP_MSVCRT_LIKE
extern "C" double lgamma_r(double, int *);
#endif
inline _LIBCPP_INLINE_VISIBILITY double __libcpp_lgamma(double __d) {
-#if defined(_LIBCPP_MSVCRT)
+#if defined(_LIBCPP_MSVCRT_LIKE)
return lgamma(__d);
#else
int __sign;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92379.308609.patch
Type: text/x-patch
Size: 498 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20201201/680e5779/attachment.bin>
More information about the libcxx-commits
mailing list