Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
MinGW: disable CRT command line globbing
[gitweb.git]
/
compat
/
mingw.c
diff --git
a/compat/mingw.c
b/compat/mingw.c
index 6849815b39a9a4716e1247178036621b18d1fdca..1140a131bfa4e1cc004cef162ad749df985ca0d9 100644
(file)
--- a/
compat/mingw.c
+++ b/
compat/mingw.c
@@
-1927,6
+1927,12
@@
int xwcstoutf(char *utf, const wchar_t *wcs, size_t utflen)
return -1;
}
+/*
+ * Disable MSVCRT command line wildcard expansion (__getmainargs called from
+ * mingw startup code, see init.c in mingw runtime).
+ */
+int _CRT_glob = 0;
+
void mingw_startup()
{
/* copy executable name to argv[0] */