Skip to content

Commit 150f3c3

Browse files
authored
[libc++] Fix missing macro definition for lgamma (#157610)
1 parent 38a7161 commit 150f3c3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libcxx/include/__random/binomial_distribution.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ class binomial_distribution {
101101
#if defined(_LIBCPP_GLIBC_PREREQ)
102102
# if _LIBCPP_GLIBC_PREREQ(2, 8)
103103
# define _LIBCPP_LGAMMA_R_NOEXCEPT _NOEXCEPT
104+
# else
105+
# define _LIBCPP_LGAMMA_R_NOEXCEPT
104106
# endif
105107
#elif defined(__LLVM_LIBC__)
106108
# define _LIBCPP_LGAMMA_R_NOEXCEPT _NOEXCEPT

0 commit comments

Comments
 (0)