зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1694575 - Don't include mozalloc.h from the iosfwd wrapper. r=andi
Differential Revision: https://phabricator.services.mozilla.com/D106392
This commit is contained in:
Родитель
db1924a474
Коммит
644e42ded7
|
@ -27,7 +27,11 @@
|
|||
// # define _GLIBCXX_DEBUG 1
|
||||
#endif
|
||||
|
||||
// Don't include mozalloc for cstdlib. See bug 1245076.
|
||||
// Don't include mozalloc.h for cstdlib, type_traits, limits and iosfwd.
|
||||
// See bug 1245076 (cstdlib), bug 1594027 (type_traits, 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
|
||||
#endif
|
||||
|
@ -40,6 +44,10 @@
|
|||
# define moz_dont_include_mozalloc_for_limits
|
||||
#endif
|
||||
|
||||
#ifndef moz_dont_include_mozalloc_for_iosfwd
|
||||
# define moz_dont_include_mozalloc_for_iosfwd
|
||||
#endif
|
||||
|
||||
// Include mozalloc after the STL header and all other headers it includes
|
||||
// have been preprocessed.
|
||||
#if !defined(MOZ_INCLUDE_MOZALLOC_H) && \
|
||||
|
|
Загрузка…
Ссылка в новой задаче