diff --git a/config/gcc-stl-wrapper.template.h b/config/gcc-stl-wrapper.template.h index 9b4a61d24660..41ae14024b0c 100644 --- a/config/gcc-stl-wrapper.template.h +++ b/config/gcc-stl-wrapper.template.h @@ -45,10 +45,8 @@ #pragma GCC visibility pop #ifdef MOZ_INCLUDE_MOZALLOC_H_FROM_${HEADER} -// See if we're in code that can use mozalloc. NB: this duplicates -// code in nscore.h because nscore.h pulls in prtypes.h, and chromium -// can't build with that being included before base/basictypes.h. -# if !defined(XPCOM_GLUE) && !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC) +// See if we're in code that can use mozalloc. +# if !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC) # include "mozilla/mozalloc.h" # else # error "STL code can only be used with infallible ::operator new()" diff --git a/config/msvc-stl-wrapper.template.h b/config/msvc-stl-wrapper.template.h index 24f02023c5fb..c37cace7029e 100644 --- a/config/msvc-stl-wrapper.template.h +++ b/config/msvc-stl-wrapper.template.h @@ -62,10 +62,8 @@ #pragma warning( pop ) #ifdef MOZ_INCLUDE_MOZALLOC_H_FROM_${HEADER} -// See if we're in code that can use mozalloc. NB: this duplicates -// code in nscore.h because nscore.h pulls in prtypes.h, and chromium -// can't build with that being included before base/basictypes.h. -# if !defined(XPCOM_GLUE) && !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC) +// See if we're in code that can use mozalloc. +# if !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC) # include "mozilla/mozalloc.h" # else # error "STL code can only be used with infallible ::operator new()" diff --git a/xpcom/base/nscore.h b/xpcom/base/nscore.h index 459d5afceff1..f7d26991e9d7 100644 --- a/xpcom/base/nscore.h +++ b/xpcom/base/nscore.h @@ -16,7 +16,7 @@ #endif /* Definitions of functions and operators that allocate memory. */ -#if !defined(XPCOM_GLUE) && !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC) +#if !defined(NS_NO_XPCOM) && !defined(MOZ_NO_MOZALLOC) # include "mozilla/mozalloc.h" #endif