Files
MINGW-packages/mingw-w64-tcl/009-fix-using-gnu-print.patch
oscarfv 0b3dbc7dad Tcl: fix sprintf format char and remove -static-libgcc (#4768)
* tcl: don't use unsupported char conversion; parallel make

%I64 should be used for 64 bit ints. %lld is not recognized and will
to serious bugs.

* tcl: get rid of -static-libgcc on configure scripts

The existing patch didn't remove all occurrences. Furthermore, it
required tweaks on every new Tcl version. This brute-force approach is
more reliable.
2018-12-13 08:10:18 +03:00

16 lines
442 B
Diff

diff -Naur tcl8.6.5-orig/win/tclWinInt.h tcl8.6.5/win/tclWinInt.h
--- tcl8.6.5-orig/win/tclWinInt.h 2016-02-25 23:12:38.000000000 +0300
+++ tcl8.6.5/win/tclWinInt.h 2016-03-03 08:47:51.129171100 +0300
@@ -45,7 +45,11 @@
#endif
#ifdef _WIN64
+# ifdef __USE_MINGW_ANSI_STDIO
+# define TCL_I_MODIFIER "I64"
+# else
# define TCL_I_MODIFIER "I"
+# endif
#else
# define TCL_I_MODIFIER ""
#endif