mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
ios: Use _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS for backwards compatibility.
_LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS is needed to bring back std::unexpected, which is removed in C++17, but still needed for libc++abi for backward compatibility. Bug: 1274565 Change-Id: I5b5687ef7a49e90bf6937ade8b02ff4484690e09 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3307905 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Justin Cohen <justincohen@chromium.org>
This commit is contained in:
parent
0453ea1686
commit
3b8a7cf594
@ -12,6 +12,14 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
// std::unexpected_handler is deprecated starting in C++11, and removed in
|
||||
// C++17. But macOS versions we run on still ship it. This define makes
|
||||
// std::unexpected_handler reappear. If that define ever stops working,
|
||||
// we hopefully no longer run on macOS versions that still have it.
|
||||
// (...or we'll have to define it in this file instead of getting it from
|
||||
// <exception>). This define must before all includes.
|
||||
#define _LIBCPP_ENABLE_CXX17_REMOVED_UNEXPECTED_FUNCTIONS
|
||||
|
||||
#include "client/ios_handler/exception_processor.h"
|
||||
|
||||
#include <Availability.h>
|
||||
|
Loading…
x
Reference in New Issue
Block a user