diff --git a/src/sysinfo.cc b/src/sysinfo.cc index a153b20c..71485982 100644 --- a/src/sysinfo.cc +++ b/src/sysinfo.cc @@ -353,6 +353,12 @@ std::vector GetCacheSizesWindows() { C.size = static_cast(cache.Size); C.type = "Unknown"; switch (cache.Type) { +// Windows SDK version >= 10.0.26100.0 +// 0x0A000010 is the value of NTDDI_WIN11_GE +#if NTDDI_VERSION >= 0x0A000010 + case CacheUnknown: + break; +#endif case CacheUnified: C.type = "Unified"; break;