From e6f9b299513446b6b6b80d172db8e72772704ffa Mon Sep 17 00:00:00 2001 From: Moonchild Date: Tue, 7 Nov 2023 19:54:01 +0100 Subject: Issue #2281 - Exclude throw wrapping on modern libcpp. As discussed. --- memory/mozalloc/throw_gcc.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/memory/mozalloc/throw_gcc.h b/memory/mozalloc/throw_gcc.h index c51794573e..3c61939eba 100644 --- a/memory/mozalloc/throw_gcc.h +++ b/memory/mozalloc/throw_gcc.h @@ -6,6 +6,9 @@ #ifndef mozilla_throw_gcc_h #define mozilla_throw_gcc_h +// Wrapping shouldn't be needed on libcpp 14+ +#if !defined(_LIBCPP_VERSION) || _LIBCPP_VERSION < 14000 + #include "mozilla/Attributes.h" #include // snprintf @@ -140,4 +143,6 @@ __throw_system_error(int err) #undef MOZ_THROW_NORETURN +#endif // !_LIBCPP_VERSION || _LIBCPP_VERSION < 14000 + #endif // mozilla_throw_gcc_h -- cgit v1.2.3