diff options
author | Michal Klocek <michal.klocek@digia.com> | 2012-04-17 18:11:33 +0300 |
---|---|---|
committer | Michal Klocek <michal.klocek@digia.com> | 2012-04-17 18:11:33 +0300 |
commit | 9c213439908243ce4dc80a79f0027244e6d5202e (patch) | |
tree | 33120807722dd6f1fe63b1f93c0b890bc1ea1c50 /src/qchartglobal.h | |
parent | 4e3b4d91073782ef2889c542ca9c287c877dbc50 (diff) |
Adds visibility hidden compilation flag, adds EXPORT_AUTO macro for interal unit testing
Diffstat (limited to 'src/qchartglobal.h')
-rw-r--r-- | src/qchartglobal.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/qchartglobal.h b/src/qchartglobal.h index 7c5524b2..5187b512 100644 --- a/src/qchartglobal.h +++ b/src/qchartglobal.h @@ -30,6 +30,14 @@ # define QTCOMMERCIALCHART_EXPORT Q_DECL_IMPORT #endif +#if defined(BUILD_PRIVATE_UNIT_TESTS) && defined(QTCOMMERCIALCHART_LIBRARY) +# define QTCOMMERCIALCHART_AUTOTEST_EXPORT Q_DECL_EXPORT +#elif defined(BUILD_PRIVATE_UNIT_TESTS) && !defined(QTCOMMERCIALCHART_LIBRARY) +# define QTCOMMERCIALCHART_AUTOTEST_EXPORT Q_DECL_IMPORT +#else +# define QTCOMMERCIALCHART_AUTOTEST_EXPORT +#endif + #define QTCOMMERCIALCHART_NAMESPACE QtCommercialChart #ifdef QTCOMMERCIALCHART_NAMESPACE |