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
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-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
在 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