Bug 1375467 - Redefining abort() in C++ requires extern "C". r=glandium

This commit is contained in:
Petr Sumbera 2017-06-22 05:09:05 -07:00
parent 427d0b2cc5
commit a393f2a6cf

View File

@ -68,7 +68,7 @@ void fillAbortMessage(char (&msg)[N], uintptr_t retAddress) {
//
// That segmentation fault will be interpreted as another bug by ASan and as a
// result, ASan will just exit(1) instead of aborting.
void abort(void)
extern "C" void abort(void)
{
#ifdef MOZ_WIDGET_ANDROID
char msg[64] = {};