[poppler] qt4/src

Albert Astals Cid aacid at kemper.freedesktop.org
Tue Feb 26 13:42:59 PST 2008


 qt4/src/poppler-export.h |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

New commits:
commit b931920f63f4276ec355118faa061bafa5ac5244
Author: Albert Astals Cid <aacid at kde.org>
Date:   Tue Feb 26 22:42:16 2008 +0100

    Add special casing in cmake buildsystem for MSVC, also add Export markers to qt4 classes, although symbol visibility is only used on MSVC at the moment

diff --git a/qt4/src/poppler-export.h b/qt4/src/poppler-export.h
new file mode 100644
index 0000000..28827bd
--- /dev/null
+++ b/qt4/src/poppler-export.h
@@ -0,0 +1,17 @@
+/*
+* This file is used to set the poppler_qt4_EXPORT macros right.
+* This is needed for setting the visibility on windows, it will have no effect on other platforms.
+*/
+#if _WIN32
+# define LIB_EXPORT __declspec(dllexport)
+# define LIB_IMPORT __declspec(dllimport)
+#else
+# define LIB_EXPORT
+# define LIB_IMPORT
+#endif
+
+#ifdef poppler_qt4_EXPORTS
+# define poppler_qt4_EXPORT LIB_EXPORT
+#else
+# define poppler_qt4_EXPORT LIB_IMPORT
+#endif


More information about the poppler mailing list