bug 685927 - make stl-wrappers more lenient when compiling ObjC with GCC. r=cjones

This commit is contained in:
Ted Mielczarek 2011-10-11 11:10:29 -04:00
parent 7acd90d977
commit da5f955883

View File

@ -41,7 +41,9 @@
#ifndef mozilla_${HEADER}_h
#define mozilla_${HEADER}_h
#if __EXCEPTIONS
// For some reason, Apple's GCC refuses to honor -fno-exceptions when
// compiling ObjC.
#if __EXCEPTIONS && !(__OBJC__ && __GNUC__ && XP_IOS)
# error "STL code can only be used with -fno-exceptions"
#endif