diff --git a/src/client/ios/Breakpad.mm b/src/client/ios/Breakpad.mm index ca856f8f..c56a6401 100644 --- a/src/client/ios/Breakpad.mm +++ b/src/client/ios/Breakpad.mm @@ -45,7 +45,7 @@ #import "client/mac/handler/protected_memory_allocator.h" #import "common/simple_string_dictionary.h" -#ifndef __EXCEPTIONS +#if !defined(__EXCEPTIONS) || (__clang__ && !__has_feature(cxx_exceptions)) // This file uses C++ try/catch (but shouldn't). Duplicate the macros from // allowing this file to work properly with // exceptions disabled even when other C++ libraries are used. #undef the try diff --git a/src/client/mac/Framework/Breakpad.mm b/src/client/mac/Framework/Breakpad.mm index 3b4b6674..1d2e519b 100644 --- a/src/client/mac/Framework/Breakpad.mm +++ b/src/client/mac/Framework/Breakpad.mm @@ -48,7 +48,7 @@ #import "common/mac/MachIPC.h" #import "common/simple_string_dictionary.h" -#ifndef __EXCEPTIONS +#if !defined(__EXCEPTIONS) || (__clang__ && !__has_feature(cxx_exceptions)) // This file uses C++ try/catch (but shouldn't). Duplicate the macros from // allowing this file to work properly with // exceptions disabled even when other C++ libraries are used. #undef the try