TerminalShell: add support for Windows

This commit is contained in:
李通洲
2022-10-08 16:04:55 +08:00
parent 8246c6e61d
commit 09a2f96cf0
15 changed files with 249 additions and 27 deletions
-2
View File
@@ -95,7 +95,5 @@ void ffDetectHostImpl(FFHostResult* host)
//On WSL, the real host can't be detected. Instead use WSL as host.
if(getenv("WSL_DISTRO") != NULL || getenv("WSL_INTEROP") != NULL)
ffStrbufAppendS(&host->productName, FF_HOST_PRODUCT_NAME_WSL);
else if(getenv("MSYSTEM") != NULL && strcmp(getenv("MSYSTEM"), "MSYS") == 0)
ffStrbufAppendS(&host->productName, FF_HOST_PRODUCT_NAME_MSYS);
}
}