From 7c94e01d9feff8e6c09c88a9e51c8d5a6cb61005 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 31 Jan 2016 14:00:05 +0100 Subject: Explicitly state visibility This cuts the exportet symbols from 12k to 2k and the library size from 16Mb to 14Mb, which isn't great but still an improvement. About 30% of the symbols are coming from the Store:: interface. nm -C -D /work/install/lib64/libsinkcommon.so.0.1 --- common/threadboundary.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/threadboundary.h') diff --git a/common/threadboundary.h b/common/threadboundary.h index 0d8ed3b..d1a1a3c 100644 --- a/common/threadboundary.h +++ b/common/threadboundary.h @@ -20,6 +20,8 @@ #pragma once +#include + #include #include @@ -29,7 +31,7 @@ namespace async { * A helper class to invoke a method in a different thread using the event loop. * The ThreadBoundary object must live in the thread where the function should be called. */ -class ThreadBoundary : public QObject { +class SINKCOMMON_EXPORT ThreadBoundary : public QObject { Q_OBJECT public: ThreadBoundary(); -- cgit v1.2.3