diff options
author | stijn <stinos@zoho.com> | 2014-05-05 12:18:27 +0200 |
---|---|---|
committer | stijn <stinos@zoho.com> | 2014-05-08 10:06:43 +0200 |
commit | 01d6be4d512118d39ef52f79ca9ddddd2bba3f32 (patch) | |
tree | e409a3f5397df34518027a2ce5f62065196f82d7 /windows/init.c | |
parent | c1c32d65af038ba1b2a2a8dd69e3f7e63eac5f3e (diff) | |
download | micropython-01d6be4d512118d39ef52f79ca9ddddd2bba3f32.tar.gz micropython-01d6be4d512118d39ef52f79ca9ddddd2bba3f32.zip |
Windows MSVC port
Extend the windows port so it compiles with the toolchain from Visual Studio 2013
Diffstat (limited to 'windows/init.c')
-rw-r--r-- | windows/init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/windows/init.c b/windows/init.c index f78dd4c807..5bb29b8f38 100644 --- a/windows/init.c +++ b/windows/init.c @@ -25,7 +25,12 @@ */ #include <stdlib.h> +#include <stdio.h> void init() { +#ifdef __MINGW32__ putenv("PRINTF_EXPONENT_DIGITS=2"); +#else + _set_output_format(_TWO_DIGIT_EXPONENT); +#endif } |