Преглед изворни кода

ifdef out foreground check on windows

Joshua Perry пре 7 година
родитељ
комит
b536cb93f4
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      src/Mayaqua/Mayaqua.c

+ 5 - 0
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
 		// Fail this for some reason when this is called this in .NET mode
 		setbuf(stdout, NULL);
 		setbuf(stdout, NULL);
 	}
 	}
+
+#ifdef OS_UNIX
 	g_foreground = (argc >= 3 && StrCmpi(argv[2], UNIX_SVC_ARG_FOREGROUND) == 0);
 	g_foreground = (argc >= 3 && StrCmpi(argv[2], UNIX_SVC_ARG_FOREGROUND) == 0);
+#else
+	g_foreground = false;
+#endif // OS_UNIX
 
 
 	// Acquisition whether NT
 	// Acquisition whether NT
 #ifdef	OS_WIN32
 #ifdef	OS_WIN32