Added
Link Here
|
1 |
changeset: 569030:f875a4ffd653 |
2 |
user: Mike Hommey <mh+mozilla@glandium.org> |
3 |
date: Sun Feb 28 17:47:27 2021 +0000 |
4 |
summary: Bug 1694575 - Don't include mozalloc.h from the iosfwd wrapper. r=andi |
5 |
|
6 |
diff -r d31bf2fc599d -r f875a4ffd653 config/gcc-stl-wrapper.template.h |
7 |
--- config/gcc-stl-wrapper.template.h Sun Feb 28 14:59:31 2021 +0000 |
8 |
+++ config/gcc-stl-wrapper.template.h Sun Feb 28 17:47:27 2021 +0000 |
9 |
@@ -27,7 +27,11 @@ |
10 |
// # define _GLIBCXX_DEBUG 1 |
11 |
#endif |
12 |
|
13 |
-// Don't include mozalloc for cstdlib. See bug 1245076. |
14 |
+// Don't include mozalloc.h for cstdlib, type_traits, limits and iosfwd. |
15 |
+// See bug 1245076 (cstdlib), bug 1594027 (type_traits, limits) and |
16 |
+// bug 1694575 (iosfwd). |
17 |
+// Please be careful when adding more exceptions, especially regarding |
18 |
+// the header not directly or indirectly including <new>. |
19 |
#ifndef moz_dont_include_mozalloc_for_cstdlib |
20 |
# define moz_dont_include_mozalloc_for_cstdlib |
21 |
#endif |
22 |
@@ -40,6 +44,10 @@ |
23 |
# define moz_dont_include_mozalloc_for_limits |
24 |
#endif |
25 |
|
26 |
+#ifndef moz_dont_include_mozalloc_for_iosfwd |
27 |
+# define moz_dont_include_mozalloc_for_iosfwd |
28 |
+#endif |
29 |
+ |
30 |
// Include mozalloc after the STL header and all other headers it includes |
31 |
// have been preprocessed. |
32 |
#if !defined(MOZ_INCLUDE_MOZALLOC_H) && \ |
33 |
|