From 8a60ae88fb4266f22558dd113480c3762a15cac3 Mon Sep 17 00:00:00 2001 From: "Unknown (UG)" Date: Wed, 14 Oct 1998 16:29:51 +0000 Subject: [PATCH] fix for vc4.2+ for c++ standard exception handling git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/defs.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/wx/defs.h b/include/wx/defs.h index 694b31a7cd..f8b01d2c33 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -280,6 +280,13 @@ WXDLLEXPORT_DATA(extern const bool) wxFalse; #endif // VC++ +#if _MSC_VER > 1010 +#undef try +#undef except +#undef finally +#define except(x) catch(...) +#endif + // Callback function type definition typedef void (*wxFunction) (wxObject&, wxEvent&);