summaryrefslogtreecommitdiff
path: root/cppunit
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-02-08 13:53:25 +0200
committerTor Lillqvist <tlillqvist@novell.com>2011-02-08 13:53:25 +0200
commit138cf77e5191084bf61d09b2564655b48457c7be (patch)
tree3947a2d3a8f1c1ea2bb5c7ec921d692f1a1b3a37 /cppunit
parentca7a520d8c7daa242402acbfed3a965da187de9d (diff)
Drop the unnecessary DllMain from CPPUNIT_PLUGIN_IMPLEMENT_MAIN()
It caused compilation errors even thanks to our workarounds for BOOL clashes.
Diffstat (limited to 'cppunit')
-rw-r--r--cppunit/windows.patch22
1 files changed, 20 insertions, 2 deletions
diff --git a/cppunit/windows.patch b/cppunit/windows.patch
index da346924ea44..72558df13e72 100644
--- a/cppunit/windows.patch
+++ b/cppunit/windows.patch
@@ -1,6 +1,18 @@
--- 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 @@
+@@ -133,9 +133,8 @@
+ /*! \def CPPUNIT_PLUGIN_IMPLEMENT_MAIN()
+ * \brief Implements the 'main' function for the plug-in.
+ *
+- * This macros implements the main() function for dynamic library.
+- * For example, WIN32 requires a DllMain function, while some Unix
+- * requires a main() function. This macros takes care of the implementation.
++ * This macros implements the main() function for dynamic library
++ * on Unix for some weird reason.
+ */
+
+ // Win32
+@@ -149,12 +149,11 @@
#define NOMINMAX
#define BLENDFUNCTION void // for mingw & gcc
#include <windows.h>
@@ -9,4 +21,10 @@
+#endif
#endif
#define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \
- BOOL APIENTRY DllMain( HANDLE, DWORD, LPVOID ) \
+- BOOL APIENTRY DllMain( HANDLE, DWORD, LPVOID ) \
+- { \
+- return TRUE; \
+- } \
+ typedef char __CppUnitPlugInImplementMainDummyTypeDef
+
+ // Unix