Browse Source

ifdef out foreground check on windows

Joshua Perry 7 năm trước cách đây
mục cha
commit
b536cb93f4
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  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
 		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