2010-01-11 10:39:05 -06:00
|
|
|
--- 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
|
2011-02-08 05:53:25 -06:00
|
|
|
@@ -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.
|
2011-02-10 17:02:09 -06:00
|
|
|
+ * This macro implements the main() function for dynamic library
|
2011-02-08 05:53:25 -06:00
|
|
|
+ * on Unix for some weird reason.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Win32
|
2011-02-10 17:02:09 -06:00
|
|
|
@@ -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
|
2010-01-11 10:39:05 -06:00
|
|
|
#define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \
|
2011-02-08 05:53:25 -06:00
|
|
|
- BOOL APIENTRY DllMain( HANDLE, DWORD, LPVOID ) \
|
|
|
|
- { \
|
|
|
|
- return TRUE; \
|
|
|
|
- } \
|
|
|
|
typedef char __CppUnitPlugInImplementMainDummyTypeDef
|
|
|
|
|
|
|
|
// Unix
|