diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-10-23 10:58:02 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-10-23 13:08:07 +0000 |
commit | 056d25f2270c6cc0e32cd7a55e80f2d420ca447d (patch) | |
tree | 7ef5ea2cc2f95157f3dc09da325e709e881d019c /tests/auto/blackbox/testdata/loadablemodule | |
parent | 31fc946bb5ffecdd907f3303536c7abc9a4b4495 (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/loadablemodule')
-rw-r--r-- | tests/auto/blackbox/testdata/loadablemodule/exported.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/auto/blackbox/testdata/loadablemodule/exported.h b/tests/auto/blackbox/testdata/loadablemodule/exported.h index 24eb8b1a0..6a3f3c573 100644 --- a/tests/auto/blackbox/testdata/loadablemodule/exported.h +++ b/tests/auto/blackbox/testdata/loadablemodule/exported.h @@ -26,12 +26,8 @@ ** ****************************************************************************/ -#if defined(_WIN32) || defined(WIN32) -# define EXPORT __declspec(dllexport) -#else -# define EXPORT __attribute__((visibility("default"))) -#endif +#include "../dllexport.h" extern "C" { - EXPORT int foo(); + DLL_EXPORT int foo(); } |