diff options
author | Slávek Banko <[email protected]> | 2019-10-28 17:57:52 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-10-28 17:57:52 +0100 |
commit | 1c40516d66c60fa211db7b535f93801802d2ff3e (patch) | |
tree | d07c5ae0b7f2e5ddcc5b2bc2b71e6a934bd6a160 | |
parent | bbe9bf4b3b0f7219a22b84bb64d0f013738b0ae6 (diff) | |
download | tdenetworkmanager-1c40516d66c60fa211db7b535f93801802d2ff3e.tar.gz tdenetworkmanager-1c40516d66c60fa211db7b535f93801802d2ff3e.zip |
Add KDE_EXPORT to public library symbols.
This fix build with gcc hidden visibility.
Signed-off-by: Slávek Banko <[email protected]>
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | tdenetworkmanager/src/tdenetman-plugin.h | 3 | ||||
-rw-r--r-- | tdenetworkmanager/src/tdenetman-vpnplugin.h | 7 |
3 files changed, 6 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e7798a6..1d31a3b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,7 +48,7 @@ endif( ) ##### optional stuff ############################ option( WITH_ALL_OPTIONS "Enable all optional support" OFF ) -option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" OFF ) +option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} ) option( WITH_OPENVPN "Enable openvpn support" ${WITH_ALL_OPTIONS} ) option( WITH_PPTP "Enable pptp support" ${WITH_ALL_OPTIONS} ) option( WITH_VPNC "Enable vpnc support" ${WITH_ALL_OPTIONS} ) diff --git a/tdenetworkmanager/src/tdenetman-plugin.h b/tdenetworkmanager/src/tdenetman-plugin.h index 9ddde0f..ad6251d 100644 --- a/tdenetworkmanager/src/tdenetman-plugin.h +++ b/tdenetworkmanager/src/tdenetman-plugin.h @@ -26,8 +26,9 @@ #define TDENETWORKMANAGER_PLUGIN_H #include <tqobject.h> +#include <kdemacros.h> -class Plugin : public TQObject +class KDE_EXPORT Plugin : public TQObject { Q_OBJECT diff --git a/tdenetworkmanager/src/tdenetman-vpnplugin.h b/tdenetworkmanager/src/tdenetman-vpnplugin.h index b345136..1215c05 100644 --- a/tdenetworkmanager/src/tdenetman-vpnplugin.h +++ b/tdenetworkmanager/src/tdenetman-vpnplugin.h @@ -35,7 +35,7 @@ #define TDENETWORKMANAGER_VPNPLUGIN "TDENetworkManager/VPNPlugin" -class VPNConfigWidget : public TQWidget +class KDE_EXPORT VPNConfigWidget : public TQWidget { Q_OBJECT @@ -51,7 +51,7 @@ class VPNConfigWidget : public TQWidget virtual bool isValid(TQStringList&); }; -class VPNAuthenticationWidget : public TQWidget +class KDE_EXPORT VPNAuthenticationWidget : public TQWidget { Q_OBJECT @@ -65,7 +65,7 @@ class VPNAuthenticationWidget : public TQWidget virtual bool needsUserInteraction(); }; -class VPNPlugin : public Plugin +class KDE_EXPORT VPNPlugin : public Plugin { Q_OBJECT @@ -79,4 +79,3 @@ class VPNPlugin : public Plugin #endif /* TDENETWORKMANAGER_VPNPLUGIN_H */ - |