From 72521a1c176506c044169038b68b83e5329a3dda Mon Sep 17 00:00:00 2001 From: stijn Date: Sat, 3 May 2014 11:28:29 +0200 Subject: mingw: Fix number of exponent digits in floating point formatting By default mingw outputs 3 digits instead of the standard 2 so all float tests using printf fail. Using setenv at the start of the program fixes this. To accomodate calling platform specific initialization a MICROPY_MAIN_INIT_FUNC macro is used which is called in mp_init() --- windows/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'windows/Makefile') diff --git a/windows/Makefile b/windows/Makefile index 351aad6f1..ce75a6098 100644 --- a/windows/Makefile +++ b/windows/Makefile @@ -31,6 +31,7 @@ SRC_C = \ unix/main.c \ unix/file.c \ realpath.c \ + init.c \ OBJ = $(PY_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o)) -- cgit v1.2.3