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 | 95c2eeebf0760dea861cee15190cf3bca18f031f (patch) | |
tree | 8d41b93e45fb963e0588212f472c39cac103ab43 | |
parent | bb3796bbc19c618854c4c9f98c9e013b98ca89d0 (diff) |
Fix compilation error with MinGW
-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 fdd7607..9c510bb 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); + |