mirror of
https://github.com/curl/curl.git
synced 2026-08-25 03:43:31 +03:00
Enable --enable-hidden-symbols for SunPro C
This commit is contained in:
parent
fe22872d14
commit
10489879f7
2 changed files with 22 additions and 8 deletions
|
|
@ -61,11 +61,12 @@ extern "C" {
|
|||
|
||||
#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.
|
||||
* This definition is used to make external definitions visibile in the
|
||||
* shared library when symbols are hidden by default. It makes no
|
||||
* difference when compiling applications whether this is set or not,
|
||||
* only when compiling the library.
|
||||
*/
|
||||
#define CURL_EXTERN __attribute__ ((visibility ("default")))
|
||||
#define CURL_EXTERN CURL_EXTERN_SYMBOL
|
||||
#else
|
||||
#define CURL_EXTERN
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue