On Mon, 30 Oct 2023, LIU Hao wrote:
在 2023/10/30 18:25, Ozkan Sezer 写道:
I have no idea about store apps, sorry.
However, maybe something like the following can be done. (Not even
compile-tested, and don't know whether it's correct - just showing
the idea. Someone more familiar with winstrore should mess with it
And also note that clock.c also has a GetModuleHandle use which is
not mine..)
I'd rather check `_WIN32_WINNT` instead. Windows store apps require Windows 8
(10?) anyway and I hope we can get rid of these initialization-on-demand
hacks there.
FWIW, this is what we already had before
cb7f42e05b94cbb1d94edcebdbfb47b652a45484; we used GetTickCount64
unconditionally if _WIN32_WINNT was set to target vista or above.
Since f3c53a51df5c08f181e13a39b1cd6fd1d41edb96, our default _WIN32_WINNT
is set to target Win10, so a default-built toolchain will have a
winpthread that doesn't run on versions below Vista - one of the intents
in cb7f42e05b94cbb1d94edcebdbfb47b652a45484 was to make it so that one
doesn't need to use a special built toolchain in order to run things on
older versions of Windows.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public