[feat] load wgc from wgc_plugin.dll at runtime and drop direct'windowsapp' linking, refs #74

This commit is contained in:
dijunkun
2026-03-20 01:36:36 +08:00
parent 2f26334775
commit 1d3cac54ab
9 changed files with 172 additions and 17 deletions

View File

@@ -108,7 +108,7 @@ std::string GetHostName() {
#ifdef _WIN32
WSADATA wsaData;
if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0) {
std::cerr << "WSAStartup failed." << std::endl;
LOG_ERROR("WSAStartup failed");
return "";
}
if (gethostname(hostname, sizeof(hostname)) == SOCKET_ERROR) {