fix(userspace/falco): include windows.h in print actions

Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
This commit is contained in:
Roberto Scolaro 2023-10-31 10:20:37 +00:00 committed by poiana
parent 907ced9f50
commit f0d2f17c8d
3 changed files with 15 additions and 2 deletions

View File

@ -137,9 +137,15 @@ if(NOT WIN32)
set(CMAKE_CXX_FLAGS_RELEASE "-O3 -fno-strict-aliasing -DNDEBUG")
else()
add_compile_definitions(_HAS_STD_BYTE=0)
add_compile_definitions(
_HAS_STD_BYTE=0
_CRT_SECURE_NO_WARNINGS
WIN32
MINIMAL_BUILD
WIN32_LEAN_AND_MEAN
)
set(FALCO_SECURITY_FLAGS_WIN "-D_CRT_SECURE_NO_WARNINGS -DWIN32 -DMINIMAL_BUILD /EHsc /W3 /Zi")
set(FALCO_SECURITY_FLAGS_WIN "/EHsc /W3 /Zi")
set(FALCO_SECURITY_FLAGS_WIN_DEBUG "/MTd /Od")
set(FALCO_SECURITY_FLAGS_WIN_RELEASE "/MT")

View File

@ -16,6 +16,10 @@ limitations under the License.
*/
#include "actions.h"
#ifdef _WIN32
#define WIN32_MEAN_AND_LEAN
#include <windows.h>
#endif
using namespace falco::app;
using namespace falco::app::actions;

View File

@ -17,6 +17,9 @@ limitations under the License.
#ifndef _WIN32
#include <sys/utsname.h>
#else
#define WIN32_MEAN_AND_LEAN
#include <windows.h>
#endif
#include <iostream>