File qt5-fix-building-with-mingw.patch of Package mingw64-libqt5-qtdeclarative

--- qtdeclarative-everywhere-src-5.12.12/src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp.orig	2022-06-02 22:54:31.909870874 +0200
+++ qtdeclarative-everywhere-src-5.12.12/src/plugins/scenegraph/d3d12/qsgd3d12engine.cpp	2022-06-02 22:55:42.161644102 +0200
@@ -62,6 +62,11 @@
 #endif
 
 #include <comdef.h>
+#ifdef __MINGW32__
+#include <d3d12sdklayers.h>
+// __uuidof
+#define _uuidof(type) __uuidof(type)
+#endif
 
 QT_BEGIN_NAMESPACE
 
--- qtdeclarative-everywhere-src-5.12.12/src/qmldevtools/qmldevtools.pro.orig   2022-06-03 18:44:48.336480283 +0000
+++ qtdeclarative-everywhere-src-5.12.12/src/qmldevtools/qmldevtools.pro        2022-06-03 18:43:58.176201804 +0000
@@ -5,6 +5,7 @@
 
 MODULE_INCNAME = QtQml
 INCLUDEPATH += $$OUT_PWD/../qml
+QMAKE_RANLIB = /usr/bin/ranlib
 
 # 2415: variable "xx" of static storage duration was declared but never referenced
 # unused variable 'xx' [-Werror,-Wunused-const-variable]
openSUSE Build Service is sponsored by