Added patch for mingw from Sebastien Vincent

This commit is contained in:
Baptiste Lepilleur 2009-11-15 22:49:54 +00:00
parent ee4b4dab54
commit b0ab79bc5b

View File

@ -66,7 +66,7 @@ std::string valueToString( Value::UInt value )
std::string valueToString( double value ) std::string valueToString( double value )
{ {
char buffer[32]; char buffer[32];
#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), "%#.16g", value); sprintf_s(buffer, sizeof(buffer), "%#.16g", value);
#else #else
sprintf(buffer, "%#.16g", value); sprintf(buffer, "%#.16g", value);