From b536cb93f48c388c0cb8a05ec6632ad76a8cedf9 Mon Sep 17 00:00:00 2001 From: Joshua Perry Date: Mon, 6 Aug 2018 09:44:42 -0600 Subject: [PATCH] ifdef out foreground check on windows --- src/Mayaqua/Mayaqua.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Mayaqua/Mayaqua.c b/src/Mayaqua/Mayaqua.c index cec007cc..a452ac91 100644 --- a/src/Mayaqua/Mayaqua.c +++ b/src/Mayaqua/Mayaqua.c @@ -513,7 +513,12 @@ void InitMayaqua(bool memcheck, bool debug, int argc, char **argv) // Fail this for some reason when this is called this in .NET mode setbuf(stdout, NULL); } + +#ifdef OS_UNIX g_foreground = (argc >= 3 && StrCmpi(argv[2], UNIX_SVC_ARG_FOREGROUND) == 0); +#else + g_foreground = false; +#endif // OS_UNIX // Acquisition whether NT #ifdef OS_WIN32