diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2019-04-22 20:57:31 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2019-04-23 20:48:39 +0200 |
commit | 2a50894a436559785a7e0f6f65dde13b0082572c (patch) | |
tree | 560491aa8af08f16cb61cf8815aca8b5100d9e1d /libart-features.h.in | |
parent | 87237501c51b48ba3b802efbd47776bb7e410c2a (diff) | |
download | libart-lgpl-2a50894a436559785a7e0f6f65dde13b0082572c.tar.gz libart-lgpl-2a50894a436559785a7e0f6f65dde13b0082572c.zip |
Add support for GCC hidden visibility.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'libart-features.h.in')
-rw-r--r-- | libart-features.h.in | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/libart-features.h.in b/libart-features.h.in index 88d4965..7ac16c9 100644 --- a/libart-features.h.in +++ b/libart-features.h.in @@ -1,6 +1,14 @@ #ifndef LIBART_FEATURES_H #define LIBART_FEATURES_H 1 +#if !defined( _ART_CONFIG_H_ ) +#ifdef LIBART_COMPILATION +#include "art_config.h" +#else +#include <libart_lgpl/art_config.h> +#endif +#endif + #define LIBART_MAJOR_VERSION (@LIBART_MAJOR_VERSION@) #define LIBART_MINOR_VERSION (@LIBART_MINOR_VERSION@) #define LIBART_MICRO_VERSION (@LIBART_MICRO_VERSION@) @@ -13,12 +21,16 @@ # define LIBART_VAR extern __declspec(dllimport) # endif #else -# define LIBART_VAR extern +# ifdef LIBART_COMPILATION +# define LIBART_VAR LIBART_EXPORT +# else +# define LIBART_VAR extern +# endif #endif LIBART_VAR const unsigned int libart_major_version, libart_minor_version, libart_micro_version; LIBART_VAR const char *libart_version; -void libart_preinit(void *app, void *modinfo); -void libart_postinit(void *app, void *modinfo); +LIBART_EXPORT void libart_preinit(void *app, void *modinfo); +LIBART_EXPORT void libart_postinit(void *app, void *modinfo); #endif |