From 2a143a63e5348b4f2082ce44f555ff2e55ec15e3 Mon Sep 17 00:00:00 2001 From: jean-pierre charras <jp.charras@wanadoo.fr> Date: Thu, 16 Jan 2025 09:57:31 +0100 Subject: [PATCH] Build on MSYS2: use shobjidl.h, instead of shobjidl_core.h shobjidl_core.h is not available on mingw --- libs/kiplatform/os/windows/environment.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libs/kiplatform/os/windows/environment.cpp b/libs/kiplatform/os/windows/environment.cpp index eba890dff6..9925fe5d1a 100644 --- a/libs/kiplatform/os/windows/environment.cpp +++ b/libs/kiplatform/os/windows/environment.cpp @@ -30,7 +30,11 @@ #include <Windows.h> #include <shellapi.h> #include <shlwapi.h> -#include <shobjidl_core.h> +#if defined( __MINGW32__ ) + #include <shobjidl.h> +#else + #include <shobjidl_core.h> +#endif #include <winhttp.h> #include <Softpub.h>