Skip to content

Commit

Permalink
Bug 1189891: Only include STL wrapper requirements on the first inclu…
Browse files Browse the repository at this point in the history
…de. r=glandium
  • Loading branch information
Bas-moz authored and glandium committed Aug 21, 2015
1 parent 663bb5d commit 8ae317b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/msvc-stl-wrapper.template.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8ae317b

Please sign in to comment.