diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-05-22 14:28:20 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-05-22 14:33:31 +0200 |
commit | 77ad60af119ab23a0bfadb3e5a0c4433fe97835b (patch) | |
tree | e0089227aaaa8dd60fa264ba9afac25f4fb1a532 /external/cppunit/CPPUNIT_PLUGIN_EXPORT.patch.0 | |
parent | ec46bb9ff8d165ab7f4537e305f8d0dae707fcf8 (diff) |
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
Diffstat (limited to 'external/cppunit/CPPUNIT_PLUGIN_EXPORT.patch.0')
-rw-r--r-- | external/cppunit/CPPUNIT_PLUGIN_EXPORT.patch.0 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/external/cppunit/CPPUNIT_PLUGIN_EXPORT.patch.0 b/external/cppunit/CPPUNIT_PLUGIN_EXPORT.patch.0 new file mode 100644 index 000000000000..a764be95a895 --- /dev/null +++ b/external/cppunit/CPPUNIT_PLUGIN_EXPORT.patch.0 @@ -0,0 +1,11 @@ +--- 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 |