...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
12 lines
384 B
Plaintext
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
|