// wrap real wxEntry in a try-except block to be able to call
// OnFatalException() if necessary
-#if wxUSE_ON_FATAL_EXCEPTION
+#if wxUSE_ON_FATAL_EXCEPTION && wxUSE_BASE
// global pointer to exception information, only valid inside OnFatalException,
// used by wxStackWalker and wxCrashReport
}
}
-#endif // wxUSE_ON_FATAL_EXCEPTION
+#endif // wxUSE_ON_FATAL_EXCEPTION && wxUSE_BASE
#if wxUSE_GUI