[Fix]: build test on macOS

This commit is contained in:
2025-11-08 20:02:21 +08:00
parent 3f36992f98
commit b151b2bba7
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -32,6 +32,7 @@
#include <functional> #include <functional>
#include <string_view> #include <string_view>
#include <unordered_map> #include <unordered_map>
#include <mutex>
// Include FastSTL // Include FastSTL
#include <FastSTL/UnorderedMap.h> #include <FastSTL/UnorderedMap.h>
@@ -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) {
#if !defined(__WIN32) && !defined(_WIN32) #if !defined(__WIN32) && !defined(_WIN32) && !defined(__APPLE__)
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) {
#if !defined(__WIN32) && !defined(_WIN32) #if !defined(__WIN32) && !defined(_WIN32) && !defined(__APPLE__)
return dlsym(lib, name); return dlsym(lib, name);
#else #else
return nullptr; return nullptr;