From 263faf2870661dcf5d9bbab4d18e21fbab04088d Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 11 Mar 2022 09:35:38 +0100 Subject: [PATCH] Fix compil issue (not defined items) on msys2 --- libs/kiplatform/msw/app.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/kiplatform/msw/app.cpp b/libs/kiplatform/msw/app.cpp index 9bfa09394c..7ebc7339b2 100644 --- a/libs/kiplatform/msw/app.cpp +++ b/libs/kiplatform/msw/app.cpp @@ -28,7 +28,10 @@ #include #include #include -#include + +#if defined( _MSC_VER ) +#include // issues on msys2 +#endif bool KIPLATFORM::APP::Init() @@ -42,8 +45,10 @@ bool KIPLATFORM::APP::Init() // undo wxwidgets trying to hide errors SetErrorMode( 0 ); +#if defined( _MSC_VER ) // ensure the WER crash report dialog always appears WerSetFlags( WER_FAULT_REPORTING_ALWAYS_SHOW_UI ); +#endif return true; }