Re: [Mingw-w64-public] [PATCH] winpthreads: Ensure `struct _timespec{32, 64}` are defined before use

2025-05-16 Thread Jeremy Lainé
I applied the patch locally and can confirm it fixed the libvpx build. Thank you very much for the quick diagnosis and fix! Jeremy On Fri, May 16, 2025 at 9:30 AM LIU Hao wrote: > > We have declarations such as > > WINPTHREAD_API int sem_timedwait64(sem_t * sem, const struct _timespec64 > *

Re: [Mingw-w64-public] [PATCH] winpthreads: Ensure `struct _timespec{32, 64}` are defined before use

2025-05-16 Thread LIU Hao
在 2025-5-16 16:21, Martin Storsjö 写道: LGTM Thanks. Pushed now. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourcefor

Re: [Mingw-w64-public] [PATCH] winpthreads: Replace K&R declarations with ISO ones

2025-05-16 Thread LIU Hao
在 2025-5-16 16:22, Martin Storsjö 写道: On Thu, 8 May 2025, LIU Hao wrote: diff --git a/mingw-w64-libraries/winpthreads/src/libgcc/dll_math.c b/mingw-w64-libraries/winpthreads/ src/libgcc/dll_math.c index 77bb1fea3..fe2ae36f8 100644 --- a/mingw-w64-libraries/winpthreads/src/libgcc/dll_math.c +++

Re: [Mingw-w64-public] [PATCH] winpthreads: Replace K&R declarations with ISO ones

2025-05-16 Thread Martin Storsjö
On Thu, 8 May 2025, LIU Hao wrote: diff --git a/mingw-w64-libraries/winpthreads/src/libgcc/dll_math.c b/mingw-w64-libraries/winpthreads/src/libgcc/dll_math.c index 77bb1fea3..fe2ae36f8 100644 --- a/mingw-w64-libraries/winpthreads/src/libgcc/dll_math.c +++ b/mingw-w64-libraries/winpthreads/src/l

Re: [Mingw-w64-public] [PATCH] winpthreads: Ensure `struct _timespec{32, 64}` are defined before use

2025-05-16 Thread Martin Storsjö
On Fri, 16 May 2025, LIU Hao wrote: We have declarations such as WINPTHREAD_API int sem_timedwait64(sem_t * sem, const struct _timespec64 *t); When `struct _timespec64` is not forward-declared, this function declaration declares a new struct whose scope is limited to that function. In this

Re: [Mingw-w64-public] [PATCH] winpthreads: Replace K&R declarations with ISO ones

2025-05-16 Thread LIU Hao
在 2025-5-8 21:57, LIU Hao 写道: From 4d36a88ac4ce2de382bb198ee5b788c6b51777fd Mon Sep 17 00:00:00 2001 From: LIU Hao Date: Thu, 8 May 2025 21:55:36 +0800 Subject: [PATCH] winpthreads: Replace K&R declarations with ISO ones Signed-off-by: LIU Hao --- .../winpthreads/src/libgcc/dll_math.c

[Mingw-w64-public] [PATCH] winpthreads: Ensure `struct _timespec{32, 64}` are defined before use

2025-05-16 Thread LIU Hao
We have declarations such as WINPTHREAD_API int sem_timedwait64(sem_t * sem, const struct _timespec64 *t); When `struct _timespec64` is not forward-declared, this function declaration declares a new struct whose scope is limited to that function. In this case it is not the same type as the on