Check the macOS deployment target before using dlfcn

This commit is contained in:
Ned Loynd 2023-03-15 21:41:29 +11:00 committed by Nigel Stewart
parent 5a2307fae3
commit 52ce1cc575

View File

@ -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__ */
/*