aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/separate-debug-info
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-10-23 10:58:02 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-10-23 13:08:07 +0000
commit056d25f2270c6cc0e32cd7a55e80f2d420ca447d (patch)
tree7ef5ea2cc2f95157f3dc09da325e709e881d019c /tests/auto/blackbox/testdata/separate-debug-info
parent31fc946bb5ffecdd907f3303536c7abc9a4b4495 (diff)
Autotest: Create a convenience header for DLL import/export macros
It's annoying having to write this again for every autotest involving shared libs. Change-Id: Ief6a11f8df2810166606874d24bfa9820af00d16 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Jake Petroules <jake.petroules@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata/separate-debug-info')
-rw-r--r--tests/auto/blackbox/testdata/separate-debug-info/foo.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/auto/blackbox/testdata/separate-debug-info/foo.cpp b/tests/auto/blackbox/testdata/separate-debug-info/foo.cpp
index daa1fd706..7e734cdbd 100644
--- a/tests/auto/blackbox/testdata/separate-debug-info/foo.cpp
+++ b/tests/auto/blackbox/testdata/separate-debug-info/foo.cpp
@@ -26,10 +26,6 @@
**
****************************************************************************/
-#if defined(_WIN32) || defined(WIN32)
-# define EXPORT __declspec(dllexport)
-#else
-# define EXPORT
-#endif
+#include "../dllexport.h"
-EXPORT int getAnswer() { return 42; }
+DLL_EXPORT int getAnswer() { return 42; }