Skip to content

Commit 05b9571

Browse files
committed
Make #include <random> work in nvcc -std=c++17 mode
This backports [PR #80979](llvm/llvm-project#80979) from llvm upstream.
1 parent 2f1f3d1 commit 05b9571

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

contrib/libs/cxxsupp/libcxx/include/__random/binomial_distribution.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,6 @@ class _LIBCPP_TEMPLATE_VIS binomial_distribution
113113
{return !(__x == __y);}
114114
};
115115

116-
#ifndef _LIBCPP_MSVCRT_LIKE
117-
extern "C" double lgamma_r(double, int *);
118-
#endif
119-
120116
inline _LIBCPP_INLINE_VISIBILITY double __libcpp_lgamma(double __d) {
121117
#if defined(_LIBCPP_MSVCRT_LIKE)
122118
return lgamma(__d);

0 commit comments

Comments
 (0)