summaryrefslogtreecommitdiff
path: root/memory
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2023-11-07 19:54:01 +0100
committerMoonchild <moonchild@palemoon.org>2023-11-07 19:54:01 +0100
commite6f9b299513446b6b6b80d172db8e72772704ffa (patch)
tree3bbcf0455f6fabba8c995bffa1f5fbe9d64db6c1 /memory
parent087aa28bc7bc81e2b2aebafd1189f37ae1943d22 (diff)
downloaduxp-e6f9b299513446b6b6b80d172db8e72772704ffa.tar.gz
Issue #2281 - Exclude throw wrapping on modern libcpp.
As discussed.
Diffstat (limited to 'memory')
-rw-r--r--memory/mozalloc/throw_gcc.h5
1 files changed, 5 insertions, 0 deletions
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 <stdio.h> // 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