Bug 578546 - Fix MSVC warning spam by adjusting ifdef to include MSVC. r=cjones a=benjamin

This commit is contained in:
Ryan VanderMeulen 2010-11-16 10:19:23 +01:00
parent cbf535d254
commit f7b38c7dad

View File

@ -206,10 +206,11 @@ MOZALLOC_EXPORT void* moz_valloc(size_t size)
# define MOZALLOC_EXPORT_NEW
#endif
#ifdef ANDROID
#if defined(ANDROID) || defined(_MSC_VER)
/*
* Android doesn't fully support exceptions, so its <new> header
* has operators that don't specify throw() at all.
* has operators that don't specify throw() at all. Also include MSVC
* to suppress build warning spam (bug 578546).
*/
#define MOZALLOC_THROW_IF_HAS_EXCEPTIONS /**/
#else