diff --git a/Source/Core/DolphinWX/Src/Main.cpp b/Source/Core/DolphinWX/Src/Main.cpp index 9a42d79524..e1fd87f87e 100644 --- a/Source/Core/DolphinWX/Src/Main.cpp +++ b/Source/Core/DolphinWX/Src/Main.cpp @@ -44,6 +44,10 @@ IMPLEMENT_APP(DolphinApp) +#if defined(HAVE_WX) && HAVE_WX +bool wxPanicAlert(const char* text, bool /*yes_no*/); +#endif + CFrame* main_frame = NULL; CCodeWindow* g_pCodeWindow = NULL; @@ -87,8 +91,8 @@ bool DolphinApp::OnInit() _CrtSetDbgFlag(tmpflag); #endif -#ifndef _WIN32 -// RegisterPanicAlertHandler(&wxPanicAlert); +#if defined(HAVE_WX) && HAVE_WX + RegisterPanicAlertHandler(&wxPanicAlert); #endif #ifdef _WIN32