diff options
-rw-r--r-- | cppunit/makefile.mk | 2 | ||||
-rw-r--r-- | cppunit/windows.patch | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/cppunit/makefile.mk b/cppunit/makefile.mk index 43cef0c4f606..040120da060e 100644 --- a/cppunit/makefile.mk +++ b/cppunit/makefile.mk @@ -37,7 +37,7 @@ TARFILE_NAME = cppunit-1.12.1 # from <https://sourceforge.net/projects/cppunit/files/cppunit/1.12.1/ # cppunit-1.12.1.tar.gz/download> -PATCH_FILES = solarisfinite.patch warnings.patch +PATCH_FILES = solarisfinite.patch warnings.patch windows.patch # solarisfinite.patch: see <https://sourceforge.net/tracker/?func=detail& # aid=2912590&group_id=11795&atid=311795> # warnings.patch: see <https://sourceforge.net/tracker/?func=detail& diff --git a/cppunit/windows.patch b/cppunit/windows.patch new file mode 100644 index 000000000000..da346924ea44 --- /dev/null +++ b/cppunit/windows.patch @@ -0,0 +1,12 @@ +--- misc/cppunit-1.12.1/include/cppunit/plugin/TestPlugIn.h 2010-01-11 14:42:25.084658287 +0100 ++++ misc/build/cppunit-1.12.1/include/cppunit/plugin/TestPlugIn.h 2010-01-11 14:42:18.660706180 +0100 +@@ -149,6 +149,9 @@ + #define NOMINMAX + #define BLENDFUNCTION void // for mingw & gcc + #include <windows.h> ++#if defined(OPTIONAL) // set within windows.h ++#undef OPTIONAL ++#endif + #endif + #define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \ + BOOL APIENTRY DllMain( HANDLE, DWORD, LPVOID ) \ |