mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-11 05:38:31 +09:00
[Fix]: fix compilation on Windows again
This commit is contained in:
@@ -443,7 +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
|
#if !defined(__WIN32) && !defined(_WIN32)
|
||||||
void* lib = nullptr;
|
void* lib = nullptr;
|
||||||
|
|
||||||
char path_name[PATH_MAX + 1];
|
char path_name[PATH_MAX + 1];
|
||||||
@@ -477,7 +477,7 @@ namespace MobileGL {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void* ProcAddress(void* lib, const char* name) {
|
void* ProcAddress(void* lib, const char* name) {
|
||||||
#ifndef __WIN32
|
#if !defined(__WIN32) && !defined(_WIN32)
|
||||||
return dlsym(lib, name);
|
return dlsym(lib, name);
|
||||||
#else
|
#else
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user