diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/curl.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/curl/curl.h b/include/curl/curl.h index 94c4551e0..bd9236ed3 100644 --- a/include/curl/curl.h +++ b/include/curl/curl.h @@ -58,7 +58,17 @@ extern "C" { #define CURL_EXTERN __declspec(dllimport) #endif #else -#define CURL_EXTERN + +#ifdef CURL_HIDDEN_SYMBOLS +/* + * On gcc >= 4 if -fvisibility=hidden is given then this is used to cause + * external definitions to be put into the shared library. It makes no + * difference to applications whether this is set or not, only the library. + */ +#define CURL_EXTERN __attribute__ ((visibility ("default"))) +#else +#define CURL_EXTERN +#endif #endif /* |