diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-30 17:47:38 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-10-30 17:47:38 +0100 |
commit | 4501ea093dadd3c44e88da9901eff683b0a91614 (patch) | |
tree | ee51852d20823c31e2f1f128607f8ceb196343d0 /opentrack-api/opentrack-guts.h | |
parent | 5d8e37f8cb37e6c583f51f188dbd00576d5f77ba (diff) |
add visibility modifiers for GNU C
Diffstat (limited to 'opentrack-api/opentrack-guts.h')
-rw-r--r-- | opentrack-api/opentrack-guts.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/opentrack-api/opentrack-guts.h b/opentrack-api/opentrack-guts.h index 1061d75d..3f8806cc 100644 --- a/opentrack-api/opentrack-guts.h +++ b/opentrack-api/opentrack-guts.h @@ -11,9 +11,15 @@ #include <iostream> #include <cstring> +#ifdef __GNUC__ +# define OPENTRACK_HIDDEN __attribute__((visibility ("hidden"))) +#else +# define OPENTRACK_HIDDEN +#endif + typedef ITracker* opentrack_tracker; -class opentrack_meta { +class OPENTRACK_HIDDEN opentrack_meta { public: Metadata* meta; QString path; @@ -29,7 +35,7 @@ public: } }; -typedef class opentrack_ctx { +typedef class OPENTRACK_HIDDEN opentrack_ctx { public: QDir dir; char** list; |