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:
Mike Hommey 2021-02-28 17:47:27 +00:00
Родитель db1924a474
Коммит 644e42ded7
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -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) && \