Skip to content

Commit

Permalink
fix(userspace/falco): include windows.h in print actions
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Oct 31, 2023
1 parent 3e233fd commit 246b0e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions userspace/falco/app/actions/print_page_size.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ limitations under the License.
*/

#include "actions.h"
#ifdef _WIN32
#define WIN32_MEAN_AND_LEAN
#define <windows.h>
#endif

using namespace falco::app;
using namespace falco::app::actions;
Expand Down
3 changes: 3 additions & 0 deletions userspace/falco/app/actions/print_support.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ limitations under the License.

#ifndef _WIN32
#include <sys/utsname.h>
#else
#define WIN32_MEAN_AND_LEAN
#define <windows.h>
#endif
#include <iostream>

Expand Down

0 comments on commit 246b0e5

Please sign in to comment.