[libcxx-commits] [PATCH] D104987: Use GetSystemTimePreciseAsFileTime() if available
Martin Storsjö via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jul 10 05:07:05 PDT 2021
mstorsjo added inline comments.
================
Comment at: libcxx/src/chrono.cpp:94
GetSystemTimePreciseAsFileTime(&ft);
#else
+ static FP fp = init_system_clock();
----------------
I think we should keep a static case with #elif !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP), ie for store apps targeting win8, that just uses GetSystemTimeAsFileTime unconditionally, as the runtime loading/lookup functions aren’t available for such apps.
I think the negated form of the condition for the function above then would be _WIN32_WINNT < _WIN32_WINNT_WIN8 && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP). (It’s be neat to be able to have all of that within the #else here, I dunno if that’s possible though.)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104987/new/
https://reviews.llvm.org/D104987
More information about the libcxx-commits
mailing list