Mercurial > hg > svcore
diff system/Init.cpp @ 1601:a090221caeda bqaudiostream
Fix incorrect number formatting results for 32-bit MinGW build
author | Chris Cannam |
---|---|
date | Wed, 30 Jan 2019 11:00:45 +0000 |
parents | 23d3a6eca5c3 |
children |
line wrap: on
line diff
--- a/system/Init.cpp Wed Jan 23 14:43:43 2019 +0000 +++ b/system/Init.cpp Wed Jan 30 11:00:45 2019 +0000 @@ -63,9 +63,11 @@ // Remove the CWD from the DLL search path, just in case SetDllDirectory(L""); putenv("PATH="); + + // Some older versions of MinGW require this in order to get + // C99/POSIX-standard behaviour for (s)printf formatting + putenv("PRINTF_EXPONENT_DIGITS=2"); #else #endif } - -