[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 <string_view>
#include <unordered_map>
#include <mutex>
// Include FastSTL
#include <FastSTL/UnorderedMap.h>
@@ -443,7 +443,7 @@ namespace MobileGL {
static const char* EGLLibs[] = {"libEGL", nullptr};
void* OpenLib(const char** names, const char* override) {
#if !defined(__WIN32) && !defined(_WIN32)
#if !defined(__WIN32) && !defined(_WIN32) && !defined(__APPLE__)
void* lib = nullptr;
char path_name[PATH_MAX + 1];
@@ -477,7 +477,7 @@ namespace MobileGL {
}
void* ProcAddress(void* lib, const char* name) {
#if !defined(__WIN32) && !defined(_WIN32)
#if !defined(__WIN32) && !defined(_WIN32) && !defined(__APPLE__)
return dlsym(lib, name);
#else
return nullptr;