From 59a47547589681aa813fc00f55af1e5f73e38eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-=C3=89tienne=20Messier?= Date: Tue, 1 Apr 2025 21:29:47 -0400 Subject: [PATCH] Make sure that the library compiles on Windows when WIN32_LEAN_AND_MEAN is defined - Added missing winioctl.h for STORAGE_PROPERTY_QUERY and IOCTL_STORAGE_PROPERTY_QUERY - CLI now compiles with with WIN32_LEAN_AND_MEAN to make sure this won't break in the future --- src/cli.cpp | 1 + src/vmaware.hpp | 1 + src/vmaware_MIT.hpp | 1 + 3 files changed, 3 insertions(+) diff --git a/src/cli.cpp b/src/cli.cpp index b6d63dad..9e328772 100644 --- a/src/cli.cpp +++ b/src/cli.cpp @@ -36,6 +36,7 @@ #if (defined(_MSC_VER) || defined(_WIN32) || defined(_WIN64) || defined(__MINGW32__)) #define WINDOWS 1 + #define WIN32_LEAN_AND_MEAN #include #else #define WINDOWS 0 diff --git a/src/vmaware.hpp b/src/vmaware.hpp index 452f085e..13a9a2ba 100644 --- a/src/vmaware.hpp +++ b/src/vmaware.hpp @@ -351,6 +351,7 @@ #include #include #include +#include #include #include #include diff --git a/src/vmaware_MIT.hpp b/src/vmaware_MIT.hpp index b317fe0f..ce78d02b 100644 --- a/src/vmaware_MIT.hpp +++ b/src/vmaware_MIT.hpp @@ -373,6 +373,7 @@ #include #include #include +#include #include #include #include