Branch: Tag:

2021-01-04

2021-01-04 01:22:59 by Marcus Comstedt <marcus@mc.pp.se>

Build: Fix macOS check for visibility attribute

611:    * 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")))