]> git.pld-linux.org Git - packages/crossmingw32-w32api.git/commitdiff
- added objc patch to match also gcc 10; release 3 auto/th/crossmingw32-w32api-5.4.2-3
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 28 Jun 2023 18:56:26 +0000 (20:56 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Wed, 28 Jun 2023 18:56:26 +0000 (20:56 +0200)
crossmingw32-w32api-objc.patch [new file with mode: 0644]
crossmingw32-w32api.spec

diff --git a/crossmingw32-w32api-objc.patch b/crossmingw32-w32api-objc.patch
new file mode 100644 (file)
index 0000000..2400de6
--- /dev/null
@@ -0,0 +1,11 @@
+--- 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
index 33ea4dad62c0747d0789a2f7c42f80d84b14a442..e12ff8dba23795718d2d6073b2820664aeb7edf3 100644 (file)
@@ -6,7 +6,7 @@ Version:        5.4.2
 %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
@@ -28,6 +28,7 @@ Source5:      https://www.khronos.org/registry/EGL/api/KHR/khrplatform.h
 # 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
@@ -95,6 +96,7 @@ ln -snf mingwrt-%{runver} mingwrt
 cd w32api
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 cd mingwrt
This page took 0.154202 seconds and 4 git commands to generate.