From 52ce1cc575d3b802edba6543b9f93362c8be9448 Mon Sep 17 00:00:00 2001 From: Ned Loynd Date: Wed, 15 Mar 2023 21:41:29 +1100 Subject: [PATCH] Check the macOS deployment target before using dlfcn --- auto/src/glew_head.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auto/src/glew_head.c b/auto/src/glew_head.c index 592cd0f..9a3802f 100644 --- a/auto/src/glew_head.c +++ b/auto/src/glew_head.c @@ -70,7 +70,7 @@ void* dlGetProcAddress (const GLubyte* name) #include #include -#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 @@ -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__ */ /*