Reviewed by Darin.
[WebKit-https.git] / WebKit / WebKitPrefix.h
index d05164715a21cb46ff9a43fe05169044305a8e9d..9bbfe54a7557f1a6cf7a08f90379f71e80c42841 100644 (file)
@@ -48,6 +48,7 @@
 
 #ifdef __cplusplus
 
+#include <algorithm> // needed for exception_defines.h
 #include <cstddef>
 #include <new>
 
@@ -64,3 +65,7 @@
 #endif
 
 #include <JavaScriptCore/Platform.h>
+
+/* Work around bug with C++ library that screws up Objective-C++ when exception support is disabled. */
+#undef try
+#undef catch