Files
libreoffice/external/cppunit/CPPUNIT_PLUGIN_EXPORT.patch.0
Stephan Bergmann 77ad60af11 Adapt CppUnit to our CPPUNIT_PLUGIN_EXPORT
...which mentions extern "C", so CppUnit's TestPlugInSignature must reflect
that.  It is a bit odd how CPPUNIT_PLUGIN_EXPORT needs to be passed into
CppUnit, so probably best to keep this as a local patch for now.  (Clang's
-fsanitize=undefined complained about the mismatch.)

Change-Id: Ied179a1afe82ceb04de4739c14cf8fadff31b80f
2014-05-22 14:33:31 +02:00

12 lines
384 B
Plaintext

--- include/cppunit/plugin/TestPlugIn.h
+++ include/cppunit/plugin/TestPlugIn.h
@@ -111,7 +111,7 @@
/*! \brief Type of the function exported by a plug-in.
* \ingroup WritingTestPlugIn
*/
-typedef CppUnitTestPlugIn *(*TestPlugInSignature)();
+extern "C" { typedef CppUnitTestPlugIn *(*TestPlugInSignature)(); }
/*! \brief Implements the function exported by the test plug-in