fix: windows build fail (#7)

This commit is contained in:
zhenyan121
2026-05-03 19:45:14 +08:00
committed by GitHub
parent 9d200f31be
commit d986e03f9c
2 changed files with 6 additions and 1 deletions

View File

@@ -6,8 +6,10 @@
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <psapi.h>
// clang-format off
#include <windows.h>
#include <psapi.h>
// clang-format on
typedef LONG(WINAPI* RtlGetVersionPtr)(PRTL_OSVERSIONINFOW);
#elif defined(__linux__)
#include <fstream>