Re: [Mingw-w64-public] [PATCH] headers: Add missing marco in synchapi.h

2022-11-18 Thread Biswapriyo Nath
I think there should not be any #if condition to mimic the behavior of WinSDK. As _NT_TARGET_VERSION_WIN10_RS4 is not defined, CREATE_WAITABLE_TIMER_HIGH_RESOLUTION exists for all Windows versions. ___ Mingw-w64-public mailing list

[Mingw-w64-public] [PATCH] crt: Use only __ImageBase symbol in mingw-w64 code

2022-11-18 Thread Pali Rohár
GNU LD provides __ImageBase symbol since 2.19. This is standard windows symbol and should be used instead of custom gnu _image_base__ symbol. For compatibility with older GNU LD versions, define __ImageBase as weak alias to _image_base__ symbol. This allows to remove all #ifdef hacks for older

[Mingw-w64-public] [PATCH] crt: Remove unused __ImageBase from crt_handler.c

2022-11-18 Thread Pali Rohár
--- mingw-w64-crt/crt/crt_handler.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/mingw-w64-crt/crt/crt_handler.c b/mingw-w64-crt/crt/crt_handler.c index fe52cf4e2a0d..c49a2b3b573d 100644 --- a/mingw-w64-crt/crt/crt_handler.c +++ b/mingw-w64-crt/crt/crt_handler.c @@ -13,16 +13,6

Re: [Mingw-w64-public] [PATCH] crt: Use _TCHAR/_tmain/_tcslen in crtexe.c

2022-11-18 Thread LIU Hao
在 2022-11-17 23:01, Pali Rohár 写道: Usage of _TCHAR/_tmain/_tcslen simplify code as it avoids #ifdef. Note that custom mingw-w64 wbytelen() function is replaced by 'sizeof(_TCHAR) * (_tcslen() + 1)' construction which expands to 2*(wcslen()+1) for unicode build. --- mingw-w64-crt/crt/crtexe.c