summaryrefslogtreecommitdiffhomepage
path: root/opentrack-api/opentrack-guts.h
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-10-30 18:24:51 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-10-30 18:24:51 +0100
commit95f7e4c5b9608c550d008c662dc41fa049a6b725 (patch)
treeff52e80085cf49afb5e68225c1d9af51e0c5e92b /opentrack-api/opentrack-guts.h
parent181875f3385391aed537c7e5fcff8fda199d39e6 (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-guts.h')
-rw-r--r--opentrack-api/opentrack-guts.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/opentrack-api/opentrack-guts.h b/opentrack-api/opentrack-guts.h
index 3f8806cc..01463cfc 100644
--- a/opentrack-api/opentrack-guts.h
+++ b/opentrack-api/opentrack-guts.h
@@ -1,8 +1,9 @@
#pragma once
-#include "ftnoir_tracker_base/ftnoir_tracker_base.h"
-#include "facetracknoir/global-settings.h"
-#include <QString>
+#ifdef __GNUC__
+# pragma GCC visibility push(protected)
+#endif
+
#include <QDir>
#include <QList>
#include <QStringList>
@@ -10,16 +11,13 @@
#include <QIcon>
#include <iostream>
#include <cstring>
-
-#ifdef __GNUC__
-# define OPENTRACK_HIDDEN __attribute__((visibility ("hidden")))
-#else
-# define OPENTRACK_HIDDEN
-#endif
+#include <QString>
+#include "ftnoir_tracker_base/ftnoir_tracker_base.h"
+#include "facetracknoir/global-settings.h"
typedef ITracker* opentrack_tracker;
-class OPENTRACK_HIDDEN opentrack_meta {
+class opentrack_meta {
public:
Metadata* meta;
QString path;
@@ -35,7 +33,7 @@ public:
}
};
-typedef class OPENTRACK_HIDDEN opentrack_ctx {
+typedef class opentrack_ctx {
public:
QDir dir;
char** list;
@@ -44,3 +42,7 @@ public:
opentrack_ctx(QDir& dir);
~opentrack_ctx();
} *opentrack;
+
+#ifdef __GNUC__
+# pragma GCC visibility pop
+#endif