From 52b7b3d194d19d93e802dbf5f11640c40b8db08f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 25 Jul 2015 21:43:40 +0100 Subject: Visibility hidden --- libtmdb/Jamfile.jam | 1 + libtmdb/httpClient.h | 6 +++--- libtmdb/tmdb-proxy.h | 2 ++ slice.jam | 4 ++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/libtmdb/Jamfile.jam b/libtmdb/Jamfile.jam index 9ec2e7a..3c719b6 100644 --- a/libtmdb/Jamfile.jam +++ b/libtmdb/Jamfile.jam @@ -27,6 +27,7 @@ lib tmdb : glibmm curl yes + -fvisibility=hidden : : . Ice diff --git a/libtmdb/httpClient.h b/libtmdb/httpClient.h index 4f35937..e171323 100644 --- a/libtmdb/httpClient.h +++ b/libtmdb/httpClient.h @@ -26,7 +26,7 @@ namespace TMDb { value(v ? boost::lexical_cast(*v) : IceUtil::Optional()) { } - + IceUtil::Optional value; }; typedef std::map Parameters; @@ -53,7 +53,7 @@ namespace TMDb { return Slicer::Deserialize(data); } - static void packParams(boost::format &); + DLL_PUBLIC static void packParams(boost::format &); template static void packParams(boost::format & fmt, const T & param, const Ts & ... params) @@ -62,7 +62,7 @@ namespace TMDb { packParams(fmt, params...); } - void appendQueryParameters(std::string & path, const Parameters & parameters) const; + DLL_PUBLIC void appendQueryParameters(std::string & path, const Parameters & parameters) const; void appendQueryParameters(std::string & path, const Parameters::value_type & nvp) const; json::Value FetchJson(const std::string & path) const; diff --git a/libtmdb/tmdb-proxy.h b/libtmdb/tmdb-proxy.h index 6ff8b38..c5490a3 100644 --- a/libtmdb/tmdb-proxy.h +++ b/libtmdb/tmdb-proxy.h @@ -1,6 +1,7 @@ #include #include "httpClient.h" +#pragma GCC visibility push(default) namespace TMDb { class Proxy : public API, private HttpClient { public: @@ -14,4 +15,5 @@ namespace TMDb { TvSeriesPtr GetTvSeries(Ice::Int, const Ice::Current&) override; }; }; +#pragma GCC visibility pop diff --git a/slice.jam b/slice.jam index 5b6429c..5534092 100644 --- a/slice.jam +++ b/slice.jam @@ -29,12 +29,12 @@ toolset.flags slice.slicer INCLUDES ; actions slice.slice2cpp { - slice2cpp -I"$(INCLUDES)" --checksum --output-dir $(1[1]:D) $(2) + slice2cpp -I"$(INCLUDES)" --checksum --output-dir $(1[1]:D) $(2) --dll-export JAM_DLL_PUBLIC } actions slice.slicer { - slice2cpp -I"$(INCLUDES)" --checksum --output-dir $(1[1]:D) $(2) + slice2cpp -I"$(INCLUDES)" --checksum --output-dir $(1[1]:D) $(2) --dll-export JAM_DLL_PUBLIC slicer -I"$(INCLUDES)" $(2) $(1[1]) } -- cgit v1.2.3