summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-12-18 10:36:21 +0100
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-12-18 10:36:21 +0100
commit953c53d206307e5129b3282e093c57d70d491796 (patch)
tree0661685394dcd375b0ff5b26ec523bc4601be4fd /inc
parent105a2594b2f882b6a60e16311c9b172452fd70d4 (diff)
Export only needed stuff on Windows
Change-Id: Iac43500280f5639caf13e4f4171a83e1eade6ece
Diffstat (limited to 'inc')
-rw-r--r--inc/libvisio/VisioDocument.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/inc/libvisio/VisioDocument.h b/inc/libvisio/VisioDocument.h
index dab307f..4e3a8fa 100644
--- a/inc/libvisio/VisioDocument.h
+++ b/inc/libvisio/VisioDocument.h
@@ -33,6 +33,16 @@
#include <librevenge/librevenge.h>
+#ifdef DLL_EXPORT
+#ifdef LIBVISIO_BUILD
+#define VSDAPI __declspec(dllexport)
+#else
+#define VSDAPI __declspec(dllimport)
+#endif
+#else
+#define VSDAPI
+#endif
+
namespace libvisio
{
@@ -40,11 +50,11 @@ class VisioDocument
{
public:
- static bool isSupported(librevenge::RVNGInputStream *input);
+ static VSDAPI bool isSupported(librevenge::RVNGInputStream *input);
- static bool parse(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter);
+ static VSDAPI bool parse(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter);
- static bool parseStencils(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter);
+ static VSDAPI bool parseStencils(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter);
};
} // namespace libvisio