Re: [Mingw-w64-public] [PATCH] winpthreads: Do not use `dllimport` when building 3rd-party DLLs

2022-04-30 Thread JonY via Mingw-w64-public
On 5/1/22 05:19, LIU Hao wrote: 在 2022-05-01 13:15, LIU Hao 写道: This is the alternative patch as discussed with jon_y on IRC. I forgot to update the commit message. Here is the revised patch. +Programs are usually linked against the winpthreads DLL, and winpthreads +headers expose `dllexp

Re: [Mingw-w64-public] [PATCH] winpthreads: Do not use `dllimport` when building 3rd-party DLLs

2022-04-30 Thread LIU Hao
在 2022-05-01 13:15, LIU Hao 写道: This is the alternative patch as discussed with jon_y on IRC. I forgot to update the commit message. Here is the revised patch. -- Best regards, LIU Hao From 6ffe0530e0838154bab1dda27596d7c0b207790c Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sat, 30 Apr 20

[Mingw-w64-public] [PATCH] winpthreads: Do not use `dllimport` when building 3rd-party DLLs

2022-04-30 Thread LIU Hao
This is the alternative patch as discussed with jon_y on IRC. -- Best regards, LIU Hao From 1d0e08852d702232eca5edd885187b7db3074348 Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sat, 30 Apr 2022 21:17:38 +0800 Subject: [PATCH] winpthreads: Do not use `dllimport` when building 3rd-party DLLs W

Re: [Mingw-w64-public] [PATCH] widl: Fix building on FreebSD

2022-04-30 Thread LIU Hao
在 2022-05-01 03:50, Martin Storsjö 写道: Since 6d67748154df21da9e343feb9d58e28c1ba0a63b in wine (wine-6.20-29-g6d67748154d, Oct 25, 2021), imported to mingw-w64 in 826215b4e0b54fe459bce203024fe50ec883cad8, widl requires sys/sysctl.h on FreeBSD. Wine does have a configure check for this header, but

[Mingw-w64-public] [PATCH] widl: Fix building on FreebSD

2022-04-30 Thread Martin Storsjö
Since 6d67748154df21da9e343feb9d58e28c1ba0a63b in wine (wine-6.20-29-g6d67748154d, Oct 25, 2021), imported to mingw-w64 in 826215b4e0b54fe459bce203024fe50ec883cad8, widl requires sys/sysctl.h on FreeBSD. Wine does have a configure check for this header, but the mingw-w64-tools wrapping didn't. Add

[Mingw-w64-public] [PATCH] winpthreads: Do not use `dllimport` when building 3rd-party DLLs

2022-04-30 Thread LIU Hao
This is not a satisfactory solution. We can see that after this commit, user code will always see `WINPTHREAD_API` as empty. I prefer to move it from headers to source files. -- Best regards, LIU Hao From cd7156e5e72c8697e5a50da8f7df65e551e6006d Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Sa