Re: [Mingw-w64-public] winpthreads: add support for _USE_32BIT_TIME_T and _TIME_BITS macros

2025-04-19 Thread Kirill Makurin
Please let me know if patches in 0005.txt and 0006.txt are ok. I would like to reorder them before large changes. - Kirill Makurin From: LIU Hao Sent: Saturday, April 19, 2025 11:05 PM To: Kirill Makurin; mingw-w64-public@lists.sourceforge.net Subject: Re: [Mingw

Re: [Mingw-w64-public] winpthreads: add support for _USE_32BIT_TIME_T and _TIME_BITS macros

2025-04-19 Thread Kirill Makurin
Thanks for the link related to `clock_gettime`. Is `_USE_32BIT_TIME_T` reliable to determine size of time_t? I know mingw-w64 header files define `_USE_32BIT_TIME_T`, so it should be ok? Also, AFAIK Microsoft header files for UCRT always use 64-bit time_t unless `_USE_32BIT_TIME_T` is explicitl

Re: [Mingw-w64-public] winpthreads: add support for _USE_32BIT_TIME_T and _TIME_BITS macros

2025-04-19 Thread LIU Hao
在 2025-4-19 21:45, Kirill Makurin 写道: `SIZEOF_TIME_T` is defined in config.h as the result of `AC_CHECK_SIZEOF(time_t)` added to configure.ac. (I did not included result from running `autoreconf` in the patches). Thanks for noticing usage of `inline`, I think it also makes sense for existing `

Re: [Mingw-w64-public] winpthreads: add support for _USE_32BIT_TIME_T and _TIME_BITS macros

2025-04-19 Thread Kirill Makurin
`SIZEOF_TIME_T` is defined in config.h as the result of `AC_CHECK_SIZEOF(time_t)` added to configure.ac. (I did not included result from running `autoreconf` in the patches). Thanks for noticing usage of `inline`, I think it also makes sense for existing `WINPTHREADS_INLINE `. The `WINPTHREAD_

Re: [Mingw-w64-public] winpthreads: add support for _USE_32BIT_TIME_T and _TIME_BITS macros

2025-04-19 Thread LIU Hao
在 2025-4-15 10:22, Kirill Makurin 写道: --- a/mingw-w64-libraries/winpthreads/include/pthread_compat.h +++ b/mingw-w64-libraries/winpthreads/include/pthread_compat.h @@ -98,6 +98,7 @@ typedef unsigned short mode_t; #ifdef __GNUC__ #define WINPTHREADS_INLINE inline +#define WINPTHREADS_ALWAY

Re: [Mingw-w64-public] [PATCH] winpthreads: check if __GNUC__ is defined to prevent -Wundef warning

2025-04-19 Thread LIU Hao
在 2025-4-17 14:53, Antonin Décimo 写道: --- mingw-w64-libraries/winpthreads/src/thread.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) Thanks for the patch. Pushed now. -- Best regards, LIU Hao OpenPGP_signature.asc Description: OpenPGP digital signature _

Re: [Mingw-w64-public] [PATCH] github: use new public preview windows-11-arm runner

2025-04-19 Thread Martin Storsjö
On Fri, 18 Apr 2025, Jeremy Drake wrote: On Fri, 18 Apr 2025, Martin Storsjö wrote: On Tue, 15 Apr 2025, Jeremy Drake via Mingw-w64-public wrote: Unfortunately, the test-llvm-mingw and test-libcxx jobs fail for arm64. I'm not clear on why. The test-ffmpeg jobs work, though FWIW, the tests