From b4855d33f0f27323bed40c950eb2cfd8a4342406 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 4 Oct 2011 15:33:34 +0200 Subject: [PATCH] Declarative: Fix linking of the testlib plugin (Windows). qtdeclarative/src/imports/testlib uses the exported variable QTest::printAvailableFunctions. As it is a plugin, it has only QT_DLL defined and not QT_SHARED and thus sees Q_TESTLIB_EXPORT=''. Change-Id: I34646e920a812fb907b60e0c4c9399499d689a01 Reviewed-on: http://codereview.qt-project.org/5990 Reviewed-by: Qt Sanity Bot Reviewed-by: Charles Yin --- src/testlib/qtest_global.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testlib/qtest_global.h b/src/testlib/qtest_global.h index b7479a8102..974d82a0d5 100644 --- a/src/testlib/qtest_global.h +++ b/src/testlib/qtest_global.h @@ -50,7 +50,7 @@ QT_BEGIN_NAMESPACE QT_MODULE(Test) -#if !defined(QT_SHARED) && !(defined(Q_OS_SYMBIAN) && defined(Q_CC_RVCT)) +#if !defined(QT_SHARED) && !defined(QT_DLL) && !(defined(Q_OS_SYMBIAN) && defined(Q_CC_RVCT)) # define Q_TESTLIB_EXPORT #else # ifdef QTESTLIB_MAKEDLL