[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
@@ -102,7 +102,11 @@ namespace MobileGL {
__eglMustCastToProperFunctionPointerType GetProcAddress(const char* name) {
MGLOG_D("eglGetProcAddress(%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;