summaryrefslogtreecommitdiffstats
path: root/memory/mozalloc/mozalloc.h
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-02-23 00:26:22 -0500
committerMatt A. Tobin <email@mattatobin.com>2020-02-23 00:26:22 -0500
commite9360fae1307575a255bb354efb807eb71e9369a (patch)
tree5fcaade08d40364eee06df289a4b9d9f8f712c4e /memory/mozalloc/mozalloc.h
parent2896724eaf851ee4b3d6f14eae05dcc626d88cdd (diff)
downloadUXP-e9360fae1307575a255bb354efb807eb71e9369a.tar
UXP-e9360fae1307575a255bb354efb807eb71e9369a.tar.gz
UXP-e9360fae1307575a255bb354efb807eb71e9369a.tar.lz
UXP-e9360fae1307575a255bb354efb807eb71e9369a.tar.xz
UXP-e9360fae1307575a255bb354efb807eb71e9369a.zip
Issue #1053 - Remove android support from memory
Diffstat (limited to 'memory/mozalloc/mozalloc.h')
-rw-r--r--memory/mozalloc/mozalloc.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/memory/mozalloc/mozalloc.h b/memory/mozalloc/mozalloc.h
index 18752a798..f42c7b04a 100644
--- a/memory/mozalloc/mozalloc.h
+++ b/memory/mozalloc/mozalloc.h
@@ -160,16 +160,7 @@ MFBT_API void* moz_xvalloc(size_t size)
# define MOZALLOC_EXPORT_NEW
#endif
-#if defined(ANDROID)
-/*
- * It's important to always specify 'throw()' in GCC because it's used to tell
- * GCC that 'new' may return null. That makes GCC null-check the result before
- * potentially initializing the memory to zero.
- * Also, the Android minimalistic headers don't include std::bad_alloc.
- */
-#define MOZALLOC_THROW_IF_HAS_EXCEPTIONS throw()
-#define MOZALLOC_THROW_BAD_ALLOC_IF_HAS_EXCEPTIONS
-#elif defined(_MSC_VER)
+#if defined(_MSC_VER)
/*
* Suppress build warning spam (bug 578546).
*/