Commit 485486a6 authored by eric@webkit.org's avatar eric@webkit.org

2009-08-12 Mark Mentovai <mark@chromium.org>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=28204
        Allow C++ exceptions to be disabled in WebCore's V8 Mac build.

        * WebCorePrefix.h:
        Only undefine |try| and |catch| when building Objective-C[++],
        leaving the C++ library definitions intact for C++.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47131 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a667be55
2009-08-12 Mark Mentovai <mark@chromium.org>
Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=28204
Allow C++ exceptions to be disabled in WebCore's V8 Mac build.
* WebCorePrefix.h:
Only undefine |try| and |catch| when building Objective-C[++],
leaving the C++ library definitions intact for C++.
2009-08-12 Nate Chapin <japhet@chromium.org>
Reviewed by Adam Barth.
......@@ -125,8 +125,11 @@
#define delete ("if you use new/delete make sure to include config.h at the top of the file"())
#endif
/* Work around a bug with C++ library that screws up Objective-C++ when exception support is disabled. */
#if defined(__APPLE__)
/* When C++ exceptions are disabled, the C++ library defines |try| and |catch|
* to allow C++ code that expects exceptions to build. These definitions
* interfere with Objective-C++ uses of Objective-C exception handlers, which
* use |@try| and |@catch|. As a workaround, undefine these macros. */
#ifdef __OBJC__
#undef try
#undef catch
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment