File 0013-Fix-errors-due-to-disabled-exceptions-with-cpp_winrt.patch of Package mingw-w64-qt6-base

From af8f66102b40db23a1df7b6ccc6acbff9cc82fcf Mon Sep 17 00:00:00 2001
From: Martchus <martchus@gmx.net>
Date: Sat, 17 Feb 2024 20:31:12 +0100
Subject: [PATCH 13/21] Fix errors due to disabled exceptions with cpp_winrt
 support

The winrt headers use exceptions so code using them must be compiled
with exceptions enabled.

Change-Id: I216f65b260062ff2020f8a288ddda78c3e9fc3c9
---
 src/plugins/platforms/direct2d/CMakeLists.txt | 1 +
 src/plugins/platforms/windows/CMakeLists.txt  | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/plugins/platforms/direct2d/CMakeLists.txt b/src/plugins/platforms/direct2d/CMakeLists.txt
index 8d63de1d051..ff2a9989d54 100644
--- a/src/plugins/platforms/direct2d/CMakeLists.txt
+++ b/src/plugins/platforms/direct2d/CMakeLists.txt
@@ -8,6 +8,7 @@
 qt_internal_add_plugin(QWindowsDirect2DIntegrationPlugin
     OUTPUT_NAME qdirect2d
     PLUGIN_TYPE platforms
+    EXCEPTIONS
     SOURCES
         ../windows/qtwindowsglobal.h
         ../windows/qwin10helpers.cpp ../windows/qwin10helpers.h
diff --git a/src/plugins/platforms/windows/CMakeLists.txt b/src/plugins/platforms/windows/CMakeLists.txt
index 9fc555504bc..4c171a3c755 100644
--- a/src/plugins/platforms/windows/CMakeLists.txt
+++ b/src/plugins/platforms/windows/CMakeLists.txt
@@ -9,6 +9,7 @@ qt_internal_add_plugin(QWindowsIntegrationPlugin
     OUTPUT_NAME qwindows
     PLUGIN_TYPE platforms
     DEFAULT_IF "windows" IN_LIST QT_QPA_PLATFORMS
+    EXCEPTIONS
     SOURCES
         main.cpp
         qtwindowsglobal.h
-- 
2.49.0

openSUSE Build Service is sponsored by