diff --git a/ports/windows/Makefile b/ports/windows/Makefile index e65c09c53a..af815383c7 100644 --- a/ports/windows/Makefile +++ b/ports/windows/Makefile @@ -40,6 +40,7 @@ SRC_C = \ realpath.c \ init.c \ sleep.c \ + fmode.c \ $(SRC_MOD) OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o)) diff --git a/ports/windows/init.c b/ports/windows/init.c index 09fa10417b..73ab713752 100644 --- a/ports/windows/init.c +++ b/ports/windows/init.c @@ -31,6 +31,7 @@ #include #endif #include "sleep.h" +#include "fmode.h" extern BOOL WINAPI console_sighandler(DWORD evt); @@ -61,6 +62,7 @@ void init() { // https://msdn.microsoft.com/en-us/library/bb531344(v=vs.140).aspx _set_output_format(_TWO_DIGIT_EXPONENT); #endif + set_fmode_binary(); } void deinit() {