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