--- /dev/null
+--- w32api-5.4.2/include/windef.h.orig 2020-03-11 21:42:26.000000000 +0100
++++ w32api-5.4.2/include/windef.h 2023-06-28 20:27:18.368282772 +0200
+@@ -246,7 +246,7 @@ typedef unsigned long DWORD;
+ typedef int WINBOOL,*PWINBOOL,*LPWINBOOL;
+ /* FIXME: Is there a good solution to this? */
+ #ifndef XFree86Server
+-#ifndef __OBJC__
++#if !defined(__OBJC__) && !defined(__GNU_LIBOBJC__)
+ typedef WINBOOL BOOL;
+ #else
+ #define BOOL WINBOOL
%define apisrc w32api-%{apiver}-mingw32
%define runver 5.4.2
%define runsrc mingwrt-%{runver}-mingw32
-Release: 2
+Release: 3
Epoch: 1
License: Free (Public Domain, SGI Free Software License B, BSD)
Group: Development/Libraries
# Source5-md5: d03191518ac2cfc3c10d22df034b154a
Patch0: %{name}-mmsystem.patch
Patch1: %{name}-winapi-update.patch
+Patch2: %{name}-objc.patch
URL: https://osdn.net/projects/mingw/
BuildRequires: autoconf >= 2.64
BuildRequires: automake
cd w32api
%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
cd mingwrt