aboutsummaryrefslogtreecommitdiff
path: root/tests/poppler/qt4/src/poppler-export.h
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-03-16 17:19:57 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-03-16 17:19:57 -0700
commitcad92b918bed03be4b822c7579b0f5d1affb9401 (patch)
tree73117aee864581675bcb120caff847dc8f89fa0d /tests/poppler/qt4/src/poppler-export.h
parentae5aa844848c071d3ee98130b7f658b423db054c (diff)
poppler test
Diffstat (limited to 'tests/poppler/qt4/src/poppler-export.h')
-rw-r--r--tests/poppler/qt4/src/poppler-export.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/poppler/qt4/src/poppler-export.h b/tests/poppler/qt4/src/poppler-export.h
new file mode 100644
index 00000000..7661fe9e
--- /dev/null
+++ b/tests/poppler/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 defined(_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