[Chore] (buildsystem): fix compilation and linking on Windows when building 3rdparty from source

This commit is contained in:
2025-08-25 14:53:22 +08:00
parent aebfa2745a
commit a19c0a214a
3 changed files with 26 additions and 72 deletions
+4 -1
View File
@@ -5,8 +5,11 @@ namespace MG_Impl::GLXImpl {
void* GetProcAddress(const char* name) {
MGLOG_D("glXGetProcAddress(\"%s\")", name);
#ifndef WIN32
void* proc = dlsym(RTLD_DEFAULT, (const char*)name);
#else
void* proc = NULL;
#endif
if (!proc) {
MGLOG_W("Failed to get function: %s", (const char*)name);
return nullptr;