From 01d6be4d512118d39ef52f79ca9ddddd2bba3f32 Mon Sep 17 00:00:00 2001 From: stijn Date: Mon, 5 May 2014 12:18:27 +0200 Subject: Windows MSVC port Extend the windows port so it compiles with the toolchain from Visual Studio 2013 --- windows/init.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'windows/init.c') diff --git a/windows/init.c b/windows/init.c index f78dd4c80..5bb29b8f3 100644 --- a/windows/init.c +++ b/windows/init.c @@ -25,7 +25,12 @@ */ #include +#include void init() { +#ifdef __MINGW32__ putenv("PRINTF_EXPONENT_DIGITS=2"); +#else + _set_output_format(_TWO_DIGIT_EXPONENT); +#endif } -- cgit v1.2.3