[libcxx-commits] [PATCH] D104987: Use GetSystemTimePreciseAsFileTime() if available

Martin Storsjö via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 12 22:47:16 PDT 2021


mstorsjo added inline comments.


================
Comment at: libcxx/src/chrono.cpp:93
   GetSystemTimePreciseAsFileTime(&ft);
-#else
+#elif _WIN32_WINNT >= _WIN32_WINNT_WIN8 && !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
   GetSystemTimeAsFileTime(&ft);
----------------
mstorsjo wrote:
> 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.)
If you're updating the patch still, could you also remove the `_WIN32_WINNT >= _WIN32_WINNT_WIN8 &&` part from this (the !desktop) condition as I requested?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104987/new/

https://reviews.llvm.org/D104987



More information about the libcxx-commits mailing list