aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorthegeorg <thegeorg@yandex-team.com>2024-02-08 07:26:33 +0300
committerthegeorg <thegeorg@yandex-team.com>2024-02-08 07:55:36 +0300
commit05b9571c1945803dff29dad60ea612dbafb94999 (patch)
tree60c78b42159a45b27205c9e8e6f01b5391608e84 /contrib
parent2f1f3d1ad61ece4b0804ebe4bf346c69b20e2751 (diff)
downloadydb-05b9571c1945803dff29dad60ea612dbafb94999.tar.gz
Make #include <random> work in nvcc -std=c++17 mode
This backports [PR #80979](https://github.com/llvm/llvm-project/pull/80979) from llvm upstream.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/libs/cxxsupp/libcxx/include/__random/binomial_distribution.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/contrib/libs/cxxsupp/libcxx/include/__random/binomial_distribution.h b/contrib/libs/cxxsupp/libcxx/include/__random/binomial_distribution.h
index 7b0f055d50..6e55167873 100644
--- a/contrib/libs/cxxsupp/libcxx/include/__random/binomial_distribution.h
+++ b/contrib/libs/cxxsupp/libcxx/include/__random/binomial_distribution.h
@@ -113,10 +113,6 @@ public:
{return !(__x == __y);}
};
-#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_LIKE)
return lgamma(__d);