summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <6yearold@gmail.com>2015-10-25 13:58:16 (GMT)
committerGleb Popov <6yearold@gmail.com>2015-10-29 15:54:19 (GMT)
commit6fdc6e22a955d160690ed9ebd0230d0247bef9a5 (patch)
treed8604aef2ec3c46066ae59251fbe6c0de82abd09
parentc339bc5d0a28d21990ea4eb876703ddc8217a22f (diff)
Make ViewerInterface to be exported unconditionally to fix linking errors with MSVC.
REVIEW: 125741
-rw-r--r--interfaces/viewerinterface.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/interfaces/viewerinterface.h b/interfaces/viewerinterface.h
index 4f27921..e9e76a2 100644
--- a/interfaces/viewerinterface.h
+++ b/interfaces/viewerinterface.h
@@ -11,6 +11,11 @@
#define _OKULAR_VIEWERINTERFACE_H_
#include "../core/okularcore_export.h"
+#ifdef _MSC_VER
+#define VIEWERINTERFACE_EXPORT __declspec(dllexport)
+#else
+#define VIEWERINTERFACE_EXPORT OKULARCORE_EXPORT
+#endif
#include <QtCore/QObject>
#include <QtCore/QString>
@@ -23,7 +28,7 @@ namespace Okular {
* This interface can be used to control some more or less advanced features of a document
* viewer.
*/
-class OKULARCORE_EXPORT ViewerInterface
+class VIEWERINTERFACE_EXPORT ViewerInterface
{
public:
virtual ~ViewerInterface() {}