blob: 42cf75a664a847fa78f62f1d60b3b5ce4d67a0c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
$NetBSD: patch-config_gcc-stl-wrapper.template.h,v 1.4 2021/09/30 14:18:28 ryoon Exp $
--- config/gcc-stl-wrapper.template.h.orig 2021-09-04 13:24:51.000000000 +0000
+++ config/gcc-stl-wrapper.template.h
@@ -32,8 +32,8 @@
// limits) and bug 1694575 (iosfwd).
// Please be careful when adding more exceptions, especially regarding
// the header not directly or indirectly including <new>.
-#ifndef moz_dont_include_mozalloc_for_cstdlib
-# define moz_dont_include_mozalloc_for_cstdlib
+#ifndef moz_dont_include_mozalloc_for_${HEADER}
+# define moz_dont_include_mozalloc_for_${HEADER}
#endif
#ifndef moz_dont_include_mozalloc_for_cmath
@@ -55,7 +55,7 @@
// Include mozalloc after the STL header and all other headers it includes
// have been preprocessed.
#if !defined(MOZ_INCLUDE_MOZALLOC_H) && \
- !defined(moz_dont_include_mozalloc_for_${HEADER})
+ !defined(moz_dont_include_mozalloc_for_cstdlib)
# define MOZ_INCLUDE_MOZALLOC_H
# define MOZ_INCLUDE_MOZALLOC_H_FROM_${HEADER}
#endif
@@ -84,4 +84,6 @@
# include "mozilla/throw_gcc.h"
#endif
+#undef moz_dont_include_mzalloc_for_${HEADER}
+
#endif // if mozilla_${HEADER}_h
|