Re: [Mingw-w64-public] clock_nanosleep patch

2022-01-02 Thread Glenn Burkhardt
Frankly, I didn't like it, either.  But there doesn't seem to be a good way to dynamically determine the Windows version.  And a compile time option would need to default to the least common denominator of not having the high res timer available.  But there's really no point in using this code

Re: [Mingw-w64-public] clock_nanosleep patch

2022-01-02 Thread Glenn Burkhardt
Frankly, I didn't like it, either.  But there doesn't seem to be a good way to dynamically determine the Windows version.  And a compile time option would need to default to the least common denominator of not having the high res timer available.  But there's really no point in using this code

Re: [Mingw-w64-public] clock_nanosleep patch

2022-01-02 Thread Glenn Burkhardt
I'm open to suggestions on how to determine the Windows version. Only newer versions support the high res timer. On 1/2/2022 3:50 PM, Óscar Fuentes wrote: Glenn Burkhardt writes: Reading the registry on every call to clock_nanosleep is wasteful.

Re: [Mingw-w64-public] clock_nanosleep patch

2022-01-02 Thread Óscar Fuentes
Glenn Burkhardt writes: Reading the registry on every call to clock_nanosleep is wasteful. ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

[Mingw-w64-public] [PATCH] crt: Fix libcrtdll.a import library

2022-01-02 Thread Pali Rohár
Import library libcrtdll.a (for crtdll.dll runtime library) compiled during mingw-w64 build process is currently broken and cannot be used for linking executable applications. Trying to do it results in following linker errors: /usr/bin/i686-w64-mingw32-ld: .../i686-w64-mingw32/lib/crt2.o: in f

[Mingw-w64-public] clock_nanosleep patch

2022-01-02 Thread Glenn Burkhardt
Hi.  Here's a patch that uses high res timers for clock_nanosleep. *** clock.c.origSun Jan 2 13:40:55 2022 --- clock.c Sun Jan 2 14:09:09 2022 *** *** 6,11 --- 6,12 #include #include + #include #include #include #ifndef IN_WINPTHREAD **

Re: [Mingw-w64-public] Macro redefinitions in ks.h and ksmedia.h

2022-01-02 Thread Biswapriyo Nath
Thank you for working on this. I have tested that mpv now builds with this fix. I have used ucrt64 in msys64 environment with gcc and rebuilt both headers and crt packages with these two patches. ___ Mingw-w64-public mailing list Mingw-w64-public@lists.

[Mingw-w64-public] Macro redefinitions in ks.h and ksmedia.h

2022-01-02 Thread LIU Hao
I wrote a script which collected the output of `gcc -E -Wp,-dM` (which is, all macros) and diffed the outputs of our headers with MS headers. This issue was more complicated than I thought, as some of them seemed to have been removed since Vista. Attached are patches that make GCC output the _e

Re: [Mingw-w64-public] add ERROR_COMMITMENT_MINIMUM

2022-01-02 Thread LIU Hao
在 2022-01-01 18:30, Michel Zou 写道: hi again, here is a patch to add a missing error enum value Thanks. I pushed this one, too. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list M

Re: [Mingw-w64-public] patch: add timeapi.h

2022-01-02 Thread LIU Hao
在 2022-01-02 21:34, Michel Zou 写道: Ok, here is an amended version of the patch. Thanks. Pushed. -- Best regards, LIU Hao OpenPGP_signature Description: OpenPGP digital signature ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.

Re: [Mingw-w64-public] patch: add timeapi.h

2022-01-02 Thread Michel Zou
Ok, here is an amended version of the patch. From: LIU Hao Sent: Sunday, January 2, 2022 6:01 AM To: mingw-w64-public@lists.sourceforge.net ; Michel Zou Subject: Re: [Mingw-w64-public] patch: add timeapi.h 在 1/1/22 5:21 PM, Michel Zou 写道: > diff --git a/mingw-w6