diff options
| -rw-r--r-- | src/zenmaster/sandboxwin.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/src/zenmaster/sandboxwin.cpp b/src/zenmaster/sandboxwin.cpp index 6377fda0b..185db513c 100644 --- a/src/zenmaster/sandboxwin.cpp +++ b/src/zenmaster/sandboxwin.cpp @@ -1,14 +1,16 @@ // Copyright Epic Games, Inc. All Rights Reserved. -// AppContainerLaunch.cpp -#include <Aclapi.h> -#include <sddl.h> -#include <stdio.h> -#include <userenv.h> -#include <windows.h> +#include <zencore/windows.h> -#pragma comment(lib, "userenv.lib") -#pragma comment(lib, "Advapi32.lib") +#if ZEN_PLATFORM_WINDOWS + +# include <Aclapi.h> +# include <sddl.h> +# include <stdio.h> +# include <userenv.h> + +# pragma comment(lib, "userenv.lib") +# pragma comment(lib, "Advapi32.lib") // Helper: add (or merge) an ACE for a SID on a directory DWORD @@ -161,3 +163,4 @@ zwmain() FreeSid(appContainerSid); return ok ? 0 : 1; } +#endif |