[libcxx-commits] [PATCH] D104987: Use GetSystemTimePreciseAsFileTime() if available
Martin Storsjö via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jul 10 06:00:21 PDT 2021
mstorsjo accepted this revision.
mstorsjo added a comment.
Thanks, this looks ok to me.
================
Comment at: libcxx/src/chrono.cpp:93
GetSystemTimePreciseAsFileTime(&ft);
-#else
+#elif _WIN32_WINNT >= _WIN32_WINNT_WIN8 && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
GetSystemTimeAsFileTime(&ft);
----------------
Technically, the version bit of _WIN32_WINNT >= _WIN32_WINNT_WIN8 && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) is redundant, it’s enough to just check the family. (There’s no non-desktop for pre-win8.)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D104987/new/
https://reviews.llvm.org/D104987
More information about the libcxx-commits
mailing list