+// even if the library itself was compiled with exceptions support, the user
+// code using it might be compiling with a compiler switch disabling them in
+// which cases we shouldn't use try/catch in the headers -- this results in
+// compilation errors in e.g. wx/scopeguard.h with at least g++ 4
+#if !wxUSE_EXCEPTIONS || \
+ (defined(__GNUG__) && !defined(__EXCEPTIONS))
+ #ifndef wxNO_EXCEPTIONS
+ #define wxNO_EXCEPTIONS
+ #endif
+#endif
+
+#ifdef wxNO_EXCEPTIONS