[Chore]: fix compilation on Windows

This commit is contained in:
2025-10-26 22:43:42 +08:00
parent bd1056f9c9
commit 63295b5493
@@ -443,6 +443,7 @@ namespace MobileGL {
static const char* EGLLibs[] = {"libEGL", nullptr}; static const char* EGLLibs[] = {"libEGL", nullptr};
void* OpenLib(const char** names, const char* override) { void* OpenLib(const char** names, const char* override) {
#ifndef __WIN32
void* lib = nullptr; void* lib = nullptr;
char path_name[PATH_MAX + 1]; char path_name[PATH_MAX + 1];
@@ -464,6 +465,9 @@ namespace MobileGL {
} }
} }
return lib; return lib;
#else
return nullptr;
#endif
} }
void LoadLibs() { void LoadLibs() {
@@ -473,7 +477,11 @@ namespace MobileGL {
} }
void* ProcAddress(void* lib, const char* name) { void* ProcAddress(void* lib, const char* name) {
#ifndef __WIN32
return dlsym(lib, name); return dlsym(lib, name);
#else
return nullptr;
#endif
} }
void InitGLESCapabilities() { void InitGLESCapabilities() {