Make ViewerInterface to be exported unconditionally to fix linking errors with MSVC.

REVIEW: 125741
frameworks
Gleb Popov 11 years ago
parent c339bc5d0a
commit 6fdc6e22a9
  1. 7
      interfaces/viewerinterface.h

@ -11,6 +11,11 @@
#define _OKULAR_VIEWERINTERFACE_H_ #define _OKULAR_VIEWERINTERFACE_H_
#include "../core/okularcore_export.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/QObject>
#include <QtCore/QString> #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 * This interface can be used to control some more or less advanced features of a document
* viewer. * viewer.
*/ */
class OKULARCORE_EXPORT ViewerInterface class VIEWERINTERFACE_EXPORT ViewerInterface
{ {
public: public:
virtual ~ViewerInterface() {} virtual ~ViewerInterface() {}

Loading…
Cancel
Save