Skip to content
Snippets Groups Projects
Commit 15d47cf7 authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

Build: Fix macOS check for visibility attribute

parent 9e08fc03
Branches
Tags
No related merge requests found
...@@ -602,7 +602,7 @@ typedef struct p_wchar_p ...@@ -602,7 +602,7 @@ typedef struct p_wchar_p
* themselves, unless they are compiled statically. */ * themselves, unless they are compiled statically. */
# define PMOD_EXPORT __declspec(dllexport) # define PMOD_EXPORT __declspec(dllexport)
# endif # 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 /* According to Clang source the protected behavior is ELF-specific and not
applicable to OS X. */ applicable to OS X. */
# define PMOD_EXPORT __attribute__ ((visibility("default"))) # define PMOD_EXPORT __attribute__ ((visibility("default")))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment