summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-10-01 07:36:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-10-01 07:36:01 (GMT)
commitf2958718ac5c821a1a0ea8f9927a30e2f061eea3 (patch)
tree2c72dd22bf538e9c355fd15cf66a53bd3e2f19bb /win
parentce39c47aa3d8e5767729511d3ab853cf1fe9af41 (diff)
parent0e85ea7738df8da2aa053411a351db327d04f8e8 (diff)
downloadtk-f2958718ac5c821a1a0ea8f9927a30e2f061eea3.zip
tk-f2958718ac5c821a1a0ea8f9927a30e2f061eea3.tar.gz
tk-f2958718ac5c821a1a0ea8f9927a30e2f061eea3.tar.bz2
Disable command line globbing on MinGW compiles, just as MSVC and MinGW-w64 don't enable command line globbing either by default.
Diffstat (limited to 'win')
-rw-r--r--win/winMain.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/win/winMain.c b/win/winMain.c
index a7308cf..36dbea9 100644
--- a/win/winMain.c
+++ b/win/winMain.c
@@ -20,6 +20,10 @@
#include <stdlib.h>
#include <tchar.h>
+#if defined(__GNUC__)
+int _CRT_glob = 0;
+#endif /* __GNUC__ */
+
#ifdef TK_TEST
extern Tcl_PackageInitProc Tktest_Init;
#endif /* TK_TEST */