diff options
author | Slávek Banko <[email protected]> | 2019-04-22 20:57:31 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-04-28 16:05:06 +0200 |
commit | b314a5b4a87c2c84b77a801348b05c819a44ef7b (patch) | |
tree | 9f5d5520de3d05096a84b6a1af7f65d48960a33a /art_config.h.in | |
parent | db23722ddb8507a7954d1cecf6217823b2052388 (diff) | |
download | libart-lgpl-b314a5b4a87c2c84b77a801348b05c819a44ef7b.tar.gz libart-lgpl-b314a5b4a87c2c84b77a801348b05c819a44ef7b.zip |
Add support for GCC hidden visibility.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit 2a50894a436559785a7e0f6f65dde13b0082572c)
Diffstat (limited to 'art_config.h.in')
-rw-r--r-- | art_config.h.in | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/art_config.h.in b/art_config.h.in index 4d42ed9..cfa4786 100644 --- a/art_config.h.in +++ b/art_config.h.in @@ -11,4 +11,15 @@ typedef @ART_U8_TYPE@ art_u8; typedef @ART_U16_TYPE@ art_u16; typedef @ART_U32_TYPE@ art_u32; +#if defined(__KDE_HAVE_GCC_VISIBILITY) || defined(G_HAVE_GCC_VISIBILITY) +#define LIBART_NO_EXPORT __attribute__ ((visibility("hidden"))) +#define LIBART_EXPORT __attribute__ ((visibility("default"))) +#elif defined(_WIN32) +#define LIBART_NO_EXPORT +#define LIBART_EXPORT __declspec(dllexport) +#else +#define LIBART_NO_EXPORT +#define LIBART_EXPORT +#endif + #endif /* _ART_CONFIG_H_ */ |