[libcxx-commits] [libcxx] 150f3c3 - [libc++] Fix missing macro definition for lgamma (#157610)

via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 9 04:46:51 PDT 2025


Author: Joseph Huber
Date: 2025-09-09T07:46:47-04:00
New Revision: 150f3c3fd3e50584fb9944cd6934f999b0ddd0e0

URL: https://github.com/llvm/llvm-project/commit/150f3c3fd3e50584fb9944cd6934f999b0ddd0e0
DIFF: https://github.com/llvm/llvm-project/commit/150f3c3fd3e50584fb9944cd6934f999b0ddd0e0.diff

LOG: [libc++] Fix missing macro definition for lgamma (#157610)

Added: 
    

Modified: 
    libcxx/include/__random/binomial_distribution.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__random/binomial_distribution.h b/libcxx/include/__random/binomial_distribution.h
index e1e852ec9a3a9..bada8cfdd74a3 100644
--- a/libcxx/include/__random/binomial_distribution.h
+++ b/libcxx/include/__random/binomial_distribution.h
@@ -101,6 +101,8 @@ class binomial_distribution {
 #if defined(_LIBCPP_GLIBC_PREREQ)
 #  if _LIBCPP_GLIBC_PREREQ(2, 8)
 #    define _LIBCPP_LGAMMA_R_NOEXCEPT _NOEXCEPT
+#  else
+#    define _LIBCPP_LGAMMA_R_NOEXCEPT
 #  endif
 #elif defined(__LLVM_LIBC__)
 #  define _LIBCPP_LGAMMA_R_NOEXCEPT _NOEXCEPT


        


More information about the libcxx-commits mailing list