mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 14:06:33 +00:00
mac: Don’t cater to gcc-4.2 libstdc++ brokenness
The try and catch macros were conditionally defined by libstdc++ pre-gcc 4.4 (2009-04-21), fixed in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25191. Surely none of this code would build with such an old libstdc++ any more, since Crashpas has adopted modern C++ (C++11 and later). Remove this obsolete nod to history. Change-Id: Ie3cea1ecc1cfd358f27ea48f8111791e7f08bfa5 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/4136890 Reviewed-by: Robert Sesek <rsesek@chromium.org> Commit-Queue: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
a41e599f33
commit
21035861b5
@ -23,17 +23,6 @@
|
||||
#include "base/strings/stringprintf.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#ifdef __GLIBCXX__
|
||||
// When C++ exceptions are disabled, libstdc++ from GCC 4.2 defines |try| and
|
||||
// |catch| so as to allow exception-expecting C++ code to build properly when
|
||||
// language support for exceptions is not present. These macros interfere with
|
||||
// the use of |@try| and |@catch| in Objective-C files such as this one.
|
||||
// Undefine these macros here, after everything has been #included, since there
|
||||
// will be no C++ uses and only Objective-C uses from this point on.
|
||||
#undef try
|
||||
#undef catch
|
||||
#endif
|
||||
|
||||
namespace crashpad {
|
||||
namespace test {
|
||||
namespace {
|
||||
|
Loading…
x
Reference in New Issue
Block a user