diff options
author | midipix <writeonce@midipix.org> | 2019-02-02 10:29:12 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-02-02 10:56:06 -0500 |
commit | 9efaa255a7fad33d56a3b1eee969b1ab3a4261e0 (patch) | |
tree | 0c8721e203b0c03fdb03785f93fb6f8a9584dd79 | |
parent | 37e592e418d39c3538aa38364ef0b7b994be0e66 (diff) | |
download | pemagine-9efaa255a7fad33d56a3b1eee969b1ab3a4261e0.tar.bz2 pemagine-9efaa255a7fad33d56a3b1eee969b1ab3a4261e0.tar.xz |
ldso: apply hidden visibility to all public interfaces.
-rw-r--r-- | include/pemagine/pe_api.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/include/pemagine/pe_api.h b/include/pemagine/pe_api.h index c6c456b..f7f9346 100644 --- a/include/pemagine/pe_api.h +++ b/include/pemagine/pe_api.h @@ -23,13 +23,22 @@ #define pe_import #endif +/* hidden visibility */ +#if defined(__attr_hidden__) +#define pe_hidden __attr_hidden__ +#else +#define pe_hidden +#endif + /* pe_api */ -#if defined (PE_EXPORT) +#if defined (PE_LDSO) +#define pe_api pe_hidden +#elif defined (PE_EXPORT) #define pe_api pe_export #elif defined (PE_IMPORT) #define pe_api pe_import #elif defined (PE_STATIC) -#define pe_api +#define pe_api pe_hidden #else #define pe_api #endif |