diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-30 18:24:51 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-30 18:24:51 +0100 |
commit | 95f7e4c5b9608c550d008c662dc41fa049a6b725 (patch) | |
tree | ff52e80085cf49afb5e68225c1d9af51e0c5e92b /opentrack-api/opentrack.h | |
parent | 181875f3385391aed537c7e5fcff8fda199d39e6 (diff) |
clean up the visibility mess in a messiest way possible
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'opentrack-api/opentrack.h')
-rw-r--r-- | opentrack-api/opentrack.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/opentrack-api/opentrack.h b/opentrack-api/opentrack.h index 8d28b5b8..1c8fcee5 100644 --- a/opentrack-api/opentrack.h +++ b/opentrack-api/opentrack.h @@ -15,7 +15,11 @@ typedef opentrack_opaque_tracker* opentrack_tracker; # ifdef _WIN32 # define OPENTRACK_EXPORT __declspec(dllexport) # else -# define OPENTRACK_EXPORT +# ifdef __GNUC__ +# define OPENTRACK_EXPORT __attribute__((visibility ("default"))) +# else +# define OPENTRACK_EXPORT +# endif # endif #else # ifdef _WIN32 @@ -55,3 +59,4 @@ void opentrack_finalize_tracker(opentrack_tracker tracker); #ifdef __cplusplus } #endif + |