From 5712ee03d367af5441ae9726f009daf8304f86ae Mon Sep 17 00:00:00 2001 From: Shivam Raikundalia Date: Thu, 10 Oct 2024 19:33:31 -0700 Subject: [PATCH] Fix Windows Build Summary: https://github.com/pytorch/kineto/commit/d260fc03ba474766b950a4c27f4aba2de2b9e145 broke Kineto on Windows because it reordered includes. Reordering them back in this diff. Differential Revision: D64213969 --- libkineto/src/ThreadUtil.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libkineto/src/ThreadUtil.cpp b/libkineto/src/ThreadUtil.cpp index 6f9429d16..58e3024c2 100644 --- a/libkineto/src/ThreadUtil.cpp +++ b/libkineto/src/ThreadUtil.cpp @@ -18,8 +18,10 @@ #include #define WIN32_LEAN_AND_MEAN #define NOGDI -#include -#include +#include // @manual +// windows.h has to come first. Don't alphabetize, clang-format. + +#include // @manual #undef ERROR #endif // _WIN32