diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-12-18 10:36:21 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2013-12-18 10:36:21 +0100 |
commit | 953c53d206307e5129b3282e093c57d70d491796 (patch) | |
tree | 0661685394dcd375b0ff5b26ec523bc4601be4fd /inc | |
parent | 105a2594b2f882b6a60e16311c9b172452fd70d4 (diff) |
Export only needed stuff on Windows
Change-Id: Iac43500280f5639caf13e4f4171a83e1eade6ece
Diffstat (limited to 'inc')
-rw-r--r-- | inc/libvisio/VisioDocument.h | 16 |
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 |