diff options
author | Tor Lillqvist <tml@iki.fi> | 2012-11-08 15:13:17 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2012-11-09 09:54:10 +0200 |
commit | 631556a0876d5bac3e50068228a7f4ea48cf9dc6 (patch) | |
tree | 2b0be4a81c9817db447a035578435b224d3593e6 /sal | |
parent | 060219ac1a2350cfe89d5415b925dca8150f864d (diff) |
When DISABLE_DYNLOADING there is no need to export much any symbols at all
Change-Id: I0261d30f20c88fc324194f687ebba3afd980117d
Diffstat (limited to 'sal')
-rw-r--r-- | sal/inc/sal/types.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/sal/inc/sal/types.h b/sal/inc/sal/types.h index 0baf3d19cb1c..dff02291d94d 100644 --- a/sal/inc/sal/types.h +++ b/sal/inc/sal/types.h @@ -270,10 +270,17 @@ typedef void * sal_Handle; # define SAL_DLLPRIVATE __hidden # define SAL_DLLPUBLIC_TEMPLATE # elif defined(__GNUC__) && defined(HAVE_GCC_VISIBILITY_FEATURE) -# define SAL_DLLPUBLIC_EXPORT __attribute__ ((visibility("default"))) -# define SAL_DLLPUBLIC_IMPORT __attribute__ ((visibility("default"))) -# define SAL_DLLPRIVATE __attribute__ ((visibility("hidden"))) -# define SAL_DLLPUBLIC_TEMPLATE __attribute__ ((visibility("default"))) +# if defined(DISABLE_DYNLOADING) +# define SAL_DLLPUBLIC_EXPORT __attribute__ ((visibility("hidden"))) +# define SAL_DLLPUBLIC_IMPORT __attribute__ ((visibility("hidden"))) +# define SAL_DLLPRIVATE __attribute__ ((visibility("hidden"))) +# define SAL_DLLPUBLIC_TEMPLATE __attribute__ ((visibility("hidden"))) +# else +# define SAL_DLLPUBLIC_EXPORT __attribute__ ((visibility("default"))) +# define SAL_DLLPUBLIC_IMPORT __attribute__ ((visibility("default"))) +# define SAL_DLLPRIVATE __attribute__ ((visibility("hidden"))) +# define SAL_DLLPUBLIC_TEMPLATE __attribute__ ((visibility("default"))) +# endif # else # define SAL_DLLPUBLIC_EXPORT # define SAL_DLLPUBLIC_IMPORT |