Branch: Tag:

2014-12-04

2014-12-04 19:23:01 by Jonas Walldén <jonasw@roxen.com>

Various clang-related changes to reduce compile-time warnings.

559:    * themselves, unless they are compiled statically. */   # define PMOD_EXPORT __declspec(dllexport)   # endif + # elif defined(__clang__) && defined(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")))   # elif __GNUC__ >= 4   # ifdef DYNAMIC_MODULE   # define PMOD_EXPORT __attribute__ ((visibility("default")))