From 15d47cf733da6645513af510846d32954b9d85a8 Mon Sep 17 00:00:00 2001 From: Marcus Comstedt <marcus@mc.pp.se> Date: Mon, 4 Jan 2021 02:22:59 +0100 Subject: [PATCH] Build: Fix macOS check for visibility attribute --- src/global.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/global.h b/src/global.h index 504620f7d0..e8618e109c 100644 --- a/src/global.h +++ b/src/global.h @@ -602,7 +602,7 @@ typedef struct p_wchar_p * themselves, unless they are compiled statically. */ # define PMOD_EXPORT __declspec(dllexport) # endif -# elif defined(__clang__) && defined(MAC_OS_X_VERSION_MIN_REQUIRED) +# elif defined(__clang__) && (defined(MAC_OS_X_VERSION_MIN_REQUIRED) || defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__)) /* According to Clang source the protected behavior is ELF-specific and not applicable to OS X. */ # define PMOD_EXPORT __attribute__ ((visibility("default"))) -- GitLab