From 06d0b80c786fd8cd489314eb4353990612eca0b872c18b29efb21fb757549ecd Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 11 Nov 2023 18:13:56 +0000 Subject: [PATCH] Accepting request 1125183 from home:rhabacker:branches:windows:mingw:win32:gcc13 - Added patch: * mingw-w64-v11.0.1-fix-undefined-interface-type.patch + fix build issue with gcc13: type 'interface' is undefined OBS-URL: https://build.opensuse.org/request/show/1125183 OBS-URL: https://build.opensuse.org/package/show/windows:mingw:win32/mingw32-headers?expand=0&rev=54 --- ...-w64-v11.0.1-fix-undefined-interface-type.patch | 14 ++++++++++++++ mingw32-headers.changes | 7 +++++++ mingw32-headers.spec | 1 + 3 files changed, 22 insertions(+) create mode 100644 mingw-w64-v11.0.1-fix-undefined-interface-type.patch diff --git a/mingw-w64-v11.0.1-fix-undefined-interface-type.patch b/mingw-w64-v11.0.1-fix-undefined-interface-type.patch new file mode 100644 index 0000000..c46a588 --- /dev/null +++ b/mingw-w64-v11.0.1-fix-undefined-interface-type.patch @@ -0,0 +1,14 @@ +diff -ur mingw-w64-v11.0.1.orig/mingw-w64-headers/include/msxml.h mingw-w64-v11.0.1/mingw-w64-headers/include/msxml.h +--- mingw-w64-v11.0.1.orig/mingw-w64-headers/include/msxml.h 2023-04-29 11:15:30.000000000 +0200 ++++ mingw-w64-v11.0.1/mingw-w64-headers/include/msxml.h 2023-11-11 15:16:47.191637105 +0100 +@@ -820,6 +820,10 @@ + END_INTERFACE + } IXMLDOMNodeVtbl; + ++#if defined(_WIN32) && !defined(interface) ++#define interface struct ++#endif ++ + interface IXMLDOMNode { + CONST_VTBL IXMLDOMNodeVtbl* lpVtbl; + }; diff --git a/mingw32-headers.changes b/mingw32-headers.changes index 7db3d8a..3719418 100644 --- a/mingw32-headers.changes +++ b/mingw32-headers.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Sat Nov 11 14:18:28 UTC 2023 - Ralf Habacker + +- Added patch: + * mingw-w64-v11.0.1-fix-undefined-interface-type.patch + + fix build issue with gcc13: type 'interface' is undefined + ------------------------------------------------------------------- Fri Nov 3 12:33:16 UTC 2023 - Jan Engelhardt diff --git a/mingw32-headers.spec b/mingw32-headers.spec index d29efea..cea7cec 100644 --- a/mingw32-headers.spec +++ b/mingw32-headers.spec @@ -26,6 +26,7 @@ URL: http://mingw-w64.sf.net/ Source: http://downloads.sf.net/mingw-w64/mingw-w64-v%version.tar.bz2 Source1000: %name-rpmlintrc Patch0: mingw-w64-v9.0.0-strnlen_s.patch +Patch1: mingw-w64-v11.0.1-fix-undefined-interface-type.patch BuildRequires: mingw32-filesystem BuildRequires: xz #!BuildIgnore: post-build-checks