summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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