From 246b0e534d015f7677519792e31335ab5470ebda Mon Sep 17 00:00:00 2001 From: Roberto Scolaro Date: Tue, 31 Oct 2023 10:20:37 +0000 Subject: [PATCH] fix(userspace/falco): include windows.h in print actions Signed-off-by: Roberto Scolaro --- userspace/falco/app/actions/print_page_size.cpp | 4 ++++ userspace/falco/app/actions/print_support.cpp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/userspace/falco/app/actions/print_page_size.cpp b/userspace/falco/app/actions/print_page_size.cpp index df84ce6ac02..045109815cb 100644 --- a/userspace/falco/app/actions/print_page_size.cpp +++ b/userspace/falco/app/actions/print_page_size.cpp @@ -16,6 +16,10 @@ limitations under the License. */ #include "actions.h" +#ifdef _WIN32 +#define WIN32_MEAN_AND_LEAN +#define +#endif using namespace falco::app; using namespace falco::app::actions; diff --git a/userspace/falco/app/actions/print_support.cpp b/userspace/falco/app/actions/print_support.cpp index 698ba4e78fe..1cc58c12466 100644 --- a/userspace/falco/app/actions/print_support.cpp +++ b/userspace/falco/app/actions/print_support.cpp @@ -17,6 +17,9 @@ limitations under the License. #ifndef _WIN32 #include +#else +#define WIN32_MEAN_AND_LEAN +#define #endif #include