mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-12 18:10:27 +01:00
Added patch for mingw from Sebastien Vincent
This commit is contained in:
parent
ee4b4dab54
commit
b0ab79bc5b
@ -66,7 +66,7 @@ std::string valueToString( Value::UInt value )
|
||||
std::string valueToString( double value )
|
||||
{
|
||||
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);
|
||||
#else
|
||||
sprintf(buffer, "%#.16g", value);
|
||||
|
Loading…
Reference in New Issue
Block a user