summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Parser/UnitTest/GenericPayloadTreeParserTest.cpp')
-rw-r--r--Swiften/Parser/UnitTest/GenericPayloadTreeParserTest.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Swiften/Parser/UnitTest/GenericPayloadTreeParserTest.cpp b/Swiften/Parser/UnitTest/GenericPayloadTreeParserTest.cpp
index d095afc..93d4e7f 100644
--- a/Swiften/Parser/UnitTest/GenericPayloadTreeParserTest.cpp
+++ b/Swiften/Parser/UnitTest/GenericPayloadTreeParserTest.cpp
@@ -7,12 +7,20 @@
#include <cppunit/extensions/HelperMacros.h>
#include <cppunit/extensions/TestFactoryRegistry.h>
+#include <Swiften/Base/Platform.h>
#include <Swiften/Parser/GenericPayloadTreeParser.h>
#include <Swiften/Parser/PayloadParsers/UnitTest/PayloadParserTester.h>
#include <Swiften/Elements/RawXMLPayload.h>
using namespace Swift;
+
+#if !SWIFTEN_STATIC && defined(SWIFTEN_PLATFORM_WINDOWS)
+// This base class of a class used in this file is already exported, so need to
+// explicitly import it.
+template class __declspec(dllimport) Swift::GenericPayloadParser<RawXMLPayload>;
+#endif
+
class GenericPayloadTreeParserTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(GenericPayloadTreeParserTest);
CPPUNIT_TEST(testTree);