]> git.ipfire.org Git - thirdparty/git.git/blobdiff - compat/mingw.c
compat/mingw: implement a native locate_in_PATH()
[thirdparty/git.git] / compat / mingw.c
index d06cdc6254fbc34eabcd1130c08ae6b8f1fcae01..bc3669d2986d8898a46359c1a3e8068fb498fd7c 100644 (file)
@@ -1347,6 +1347,11 @@ static char *path_lookup(const char *cmd, int exe_only)
        return prog;
 }
 
+char *mingw_locate_in_PATH(const char *cmd)
+{
+       return path_lookup(cmd, 0);
+}
+
 static const wchar_t *wcschrnul(const wchar_t *s, wchar_t c)
 {
        while (*s && *s != c)