summaryrefslogtreecommitdiff
path: root/compat/mingw.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-07-21 11:18:50 -0700
committerJunio C Hamano <gitster@pobox.com>2014-07-21 11:18:50 -0700
commit80e85754e08da9999f7b7ab956465150aebcf44d (patch)
tree56bf61b92b961923d5c153fa5546c55f3245f51c /compat/mingw.h
parenta8c565b227b408cb2ff2064482d2259df16e9e52 (diff)
parent0217569bb2db23b8686f67b0f4dda7e517dec6fd (diff)
downloadgit-80e85754e08da9999f7b7ab956465150aebcf44d.tar.gz
Merge branch 'sk/mingw-uni-fix'
* sk/mingw-uni-fix: Win32: Unicode file name support (dirent) Win32: Unicode file name support (except dirent)
Diffstat (limited to 'compat/mingw.h')
-rw-r--r--compat/mingw.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index 7ff2376335..510530c690 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -121,10 +121,7 @@ static inline int fcntl(int fd, int cmd, ...)
* simple adaptors
*/
-static inline int mingw_mkdir(const char *path, int mode)
-{
- return mkdir(path);
-}
+int mingw_mkdir(const char *path, int mode);
#define mkdir mingw_mkdir
#define WNOHANG 1
@@ -195,6 +192,19 @@ FILE *mingw_freopen (const char *filename, const char *otype, FILE *stream);
int mingw_fflush(FILE *stream);
#define fflush mingw_fflush
+int mingw_access(const char *filename, int mode);
+#undef access
+#define access mingw_access
+
+int mingw_chdir(const char *dirname);
+#define chdir mingw_chdir
+
+int mingw_chmod(const char *filename, int mode);
+#define chmod mingw_chmod
+
+char *mingw_mktemp(char *template);
+#define mktemp mingw_mktemp
+
char *mingw_getcwd(char *pointer, int len);
#define getcwd mingw_getcwd