diff --git a/MobileGL/MG_Impl/EGLImpl/Temporary/TemporaryEGLImpl.cpp b/MobileGL/MG_Impl/EGLImpl/Temporary/TemporaryEGLImpl.cpp index 28f9444e..b53a80c0 100644 --- a/MobileGL/MG_Impl/EGLImpl/Temporary/TemporaryEGLImpl.cpp +++ b/MobileGL/MG_Impl/EGLImpl/Temporary/TemporaryEGLImpl.cpp @@ -102,7 +102,7 @@ namespace MobileGL { __eglMustCastToProperFunctionPointerType GetProcAddress(const char* name) { MGLOG_D("eglGetProcAddress(%s)", name); -#ifndef WIN32 +#if !defined(WIN32) && !defined(__APPLE__) void* proc = dlsym(RTLD_DEFAULT, (const char*)name); #else void* proc = NULL; diff --git a/MobileGL/MG_Impl/GLXImpl/LookUp/LookUp.cpp b/MobileGL/MG_Impl/GLXImpl/LookUp/LookUp.cpp index a09a111b..48145548 100644 --- a/MobileGL/MG_Impl/GLXImpl/LookUp/LookUp.cpp +++ b/MobileGL/MG_Impl/GLXImpl/LookUp/LookUp.cpp @@ -5,7 +5,7 @@ namespace MG_Impl::GLXImpl { void* GetProcAddress(const char* name) { MGLOG_D("glXGetProcAddress(\"%s\")", name); -#ifndef WIN32 +#if !defined(WIN32) && !defined(__APPLE__) void* proc = dlsym(RTLD_DEFAULT, (const char*)name); #else void* proc = NULL;