1 --- misc/cppunit-1.13.1/include/cppunit/plugin/TestPlugIn.h 2010-01-11 14:42:25.084658287 +0100
2 +++ misc/build/cppunit-1.13.1/include/cppunit/plugin/TestPlugIn.h 2010-01-11 14:42:18.660706180 +0100
4 /*! \def CPPUNIT_PLUGIN_IMPLEMENT_MAIN()
5 * \brief Implements the 'main' function for the plug-in.
7 - * This macros implements the main() function for dynamic library.
8 - * For example, WIN32 requires a DllMain function, while some Unix
9 - * requires a main() function. This macros takes care of the implementation.
10 + * This macro implements the main() function for dynamic library
11 + * on Unix for some weird reason.
18 #if defined(CPPUNIT_HAVE_WIN32_DLL_LOADER)
19 -#if !defined(APIENTRY)
20 -#define WIN32_LEAN_AND_MEAN
26 -#define BLENDFUNCTION void // for mingw & gcc
29 #define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \
30 - BOOL APIENTRY DllMain( HANDLE, DWORD, LPVOID ) \
34 typedef char __CppUnitPlugInImplementMainDummyTypeDef
37 --- misc/cppunit-1.13.1/include/cppunit/TestAssert.h
38 +++ misc/build/cppunit-1.13.1/include/cppunit/TestAssert.h
40 const int precision = 15;
41 #endif // #ifdef DBL_DIG
43 -#ifdef __STDC_SECURE_LIB__ // Use secure version with visual studio 2005 to avoid warning.
44 +#if defined(_MSC_VER) && defined(__STDC_SECURE_LIB__) // Use secure version with visual studio 2005 to avoid warning.
45 sprintf_s(buffer, sizeof(buffer), "%.*g", precision, x);
47 sprintf(buffer, "%.*g", precision, x);