mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-22 06:35:07 +00:00
Check the macOS deployment target before using dlfcn
This commit is contained in:
parent
5a2307fae3
commit
52ce1cc575
@ -70,7 +70,7 @@ void* dlGetProcAddress (const GLubyte* name)
|
||||
#include <string.h>
|
||||
#include <AvailabilityMacros.h>
|
||||
|
||||
#ifdef MAC_OS_X_VERSION_10_3
|
||||
#if defined(MAC_OS_X_VERSION_10_3) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_3
|
||||
|
||||
#include <dlfcn.h>
|
||||
|
||||
@ -120,7 +120,7 @@ void* NSGLGetProcAddress (const GLubyte *name)
|
||||
return NULL;
|
||||
#endif
|
||||
}
|
||||
#endif /* MAC_OS_X_VERSION_10_3 */
|
||||
#endif /* defined(MAC_OS_X_VERSION_10_3) && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_3 */
|
||||
#endif /* __APPLE__ */
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user