summaryrefslogtreecommitdiff
path: root/cppunit
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@novell.com>2011-02-11 01:02:09 +0200
committerTor Lillqvist <tlillqvist@novell.com>2011-02-11 01:05:08 +0200
commitec2adc3f77ca3c0e4c2fc9a6e2c4ea3cc8bf1a1d (patch)
tree26bded35df6f91beffb2e6160aa53250aee66747 /cppunit
parent128ca1c1e49464fa574979bd242c8e6fa8cdd287 (diff)
No need to include <windows.h> in TestPlugIn.h
We don't define any dummy DllMain() any more so no need to include <windows.h>. That was necessary just to get the types used by the DllMain() prototype.
Diffstat (limited to 'cppunit')
-rw-r--r--cppunit/windows.patch24
1 files changed, 15 insertions, 9 deletions
diff --git a/cppunit/windows.patch b/cppunit/windows.patch
index 72558df13e72..fdd760710f02 100644
--- a/cppunit/windows.patch
+++ b/cppunit/windows.patch
@@ -7,19 +7,25 @@
- * 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
++ * This macro 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>
-+#if defined(OPTIONAL) // set within windows.h
-+#undef OPTIONAL
-+#endif
- #endif
+@@ -149,21 +149,7 @@
+
+ // Win32
+ #if defined(CPPUNIT_HAVE_WIN32_DLL_LOADER)
+-#if !defined(APIENTRY)
+-#define WIN32_LEAN_AND_MEAN
+-#define NOGDI
+-#define NOUSER
+-#define NOKERNEL
+-#define NOSOUND
+-#define NOMINMAX
+-#define BLENDFUNCTION void // for mingw & gcc
+-#include <windows.h>
+-#endif
#define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \
- BOOL APIENTRY DllMain( HANDLE, DWORD, LPVOID ) \
- { \