Commit 3510499a authored by omtinez's avatar omtinez Committed by Paul Sokolovsky
Browse files

windows: Call _set_output_format() only on Visual Studio versions 2013 or lower.

Since VS2015, float formatting is C standard compliant by default:
https://msdn.microsoft.com/en-us/library/bb531344(v=vs.140).aspx
parent 17c649da
......@@ -32,7 +32,9 @@ void init() {
init_sleep();
#ifdef __MINGW32__
putenv("PRINTF_EXPONENT_DIGITS=2");
#else
#elif _MSC_VER < 1900
// This is only necessary for Visual Studio versions 2013 and below:
// https://msdn.microsoft.com/en-us/library/bb531344(v=vs.140).aspx
_set_output_format(_TWO_DIGIT_EXPONENT);
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment