$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 . -#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