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 <qt_sanity_bot@ovi.com>
Reviewed-by: Charles Yin <charles.yin@nokia.com>
bb10
Friedemann Kleint 2011-10-04 15:33:34 +02:00 committed by Qt by Nokia
parent de4c9b3e31
commit b4855d33f0
1 changed files with 1 additions and 1 deletions

View File

@ -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