Bug 1189891: Only include STL wrapper requirements on the first include. r=glandium

This commit is contained in:
Bas Schouten 2015-08-20 20:03:44 +00:00
parent c301304fba
commit 747895a3d7

View File

@ -8,6 +8,9 @@
#ifndef mozilla_${HEADER}_h
#define mozilla_${HEADER}_h
#ifndef MOZ_HAVE_INCLUDED_ALLOC
#define MOZ_HAVE_INCLUDED_ALLOC
#if _HAS_EXCEPTIONS
# error "STL code can only be used with -fno-exceptions"
#endif
@ -32,6 +35,7 @@
#else
# error "STL code can only be used with infallible ::operator new()"
#endif
#endif /* MOZ_HAVE_INCLUDED_ALLOC */
#ifdef _DEBUG
// From