diff options
author | Tor Lillqvist <tlillqvist@novell.com> | 2011-06-17 13:33:42 +0300 |
---|---|---|
committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-06-17 13:33:42 +0300 |
commit | a25f3152a53bf2289712252ca89196df0d89f2aa (patch) | |
tree | 935ad9611a6f12dbf63aea709c89ca36fd82eaba /cppunit/windows.patch | |
parent | 04fa28416c2e44284522175715040e899980ca5e (diff) |
Fix compilation error with MinGW
Diffstat (limited to 'cppunit/windows.patch')
-rw-r--r-- | cppunit/windows.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cppunit/windows.patch b/cppunit/windows.patch index fdd760710f02..9c510bb6d604 100644 --- a/cppunit/windows.patch +++ b/cppunit/windows.patch @@ -34,3 +34,15 @@ typedef char __CppUnitPlugInImplementMainDummyTypeDef // Unix +--- misc/cppunit-1.12.1/include/cppunit/TestAssert.h ++++ misc/build/cppunit-1.12.1/include/cppunit/TestAssert.h +@@ -76,7 +76,7 @@ + const int precision = 15; + #endif // #ifdef DBL_DIG + char buffer[128]; +-#ifdef __STDC_SECURE_LIB__ // Use secure version with visual studio 2005 to avoid warning. ++#if defined(_MSC_VER) && defined(__STDC_SECURE_LIB__) // Use secure version with visual studio 2005 to avoid warning. + sprintf_s(buffer, sizeof(buffer), "%.*g", precision, x); + #else + sprintf(buffer, "%.*g", precision, x); + |