mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-07 19:58:32 +09:00
[Fix]: build test on macOS
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user