summaryrefslogtreecommitdiff
path: root/include/cppunit/ui/qt/Config.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cppunit/ui/qt/Config.h')
-rw-r--r--include/cppunit/ui/qt/Config.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/cppunit/ui/qt/Config.h b/include/cppunit/ui/qt/Config.h
new file mode 100644
index 0000000..73eac3c
--- /dev/null
+++ b/include/cppunit/ui/qt/Config.h
@@ -0,0 +1,21 @@
+#ifndef CPPUNIT_QTUI_CONFIG_H
+#define CPPUNIT_QTUI_CONFIG_H
+
+/*! Macro to export symbol to DLL with VC++.
+ *
+ * - QTTESTRUNNER_DLL_BUILD must be defined when building the DLL.
+ * - QTTESTRUNNER_DLL must be defined if linking against the DLL.
+ * - If none of the above are defined then you are building or linking against
+ * the static library.
+ */
+
+#if defined( QTTESTRUNNER_DLL_BUILD )
+# define QTTESTRUNNER_API __declspec(dllexport)
+#elif defined ( QTTESTRUNNER_DLL )
+# define QTTESTRUNNER_API __declspec(dllimport)
+#else
+# define QTTESTRUNNER_API
+#endif
+
+
+#endif // CPPUNIT_QTUI_CONFIG_H \ No newline at end of file