firefox/firefox-4.0-build-throw.patch

12 lines
382 B
Diff
Raw Permalink Normal View History

--- memory/mozalloc/mozalloc.h 2010-09-14 16:14:54.000000000 +0200
+++ memory/mozalloc/mozalloc.h-gil 2010-10-05 00:45:01.000000000 +0200
@@ -214,7 +214,7 @@
#define MOZALLOC_THROW_IF_HAS_EXCEPTIONS throw()
#endif
-#ifdef MOZ_CPP_EXCEPTIONS
+#if 1
#define MOZALLOC_THROW_BAD_ALLOC throw(std::bad_alloc)
#else
#define MOZALLOC_THROW_BAD_ALLOC MOZALLOC_THROW_IF_HAS_EXCEPTIONS