path: root/compat/mingw.h
diff options
authorAndrzej K. Haczewski <>2010-01-15 20:12:20 (GMT)
committerJunio C Hamano <>2010-01-17 02:16:06 (GMT)
commit44626dc7d562d23b54d969bb73ddeda12d5602e9 (patch)
tree258fc4d9deba69663084f646ab97fd7458e0bbba /compat/mingw.h
parentb6f714f89a2abb591e6d46595f43bc8d4d356a72 (diff)
MSVC: Windows-native implementation for subset of Pthreads API
This patch implements native to Windows subset of pthreads API used by Git. It allows to remove Pthreads for Win32 dependency for MSVC, msysgit and Cygwin. [J6t: If the MinGW build was built as part of the msysgit build environment, then threading was already enabled because the pthreads-win32 package is available in msysgit. With this patch, we can now enable threaded code unconditionally.] Signed-off-by: Andrzej K. Haczewski <> Signed-off-by: Johannes Sixt <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'compat/mingw.h')
1 files changed, 5 insertions, 0 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index afe12ea..e254fb4 100644
--- a/compat/mingw.h
+++ b/compat/mingw.h
@@ -310,3 +310,8 @@ struct mingw_dirent
#define readdir(x) mingw_readdir(x)
struct dirent *mingw_readdir(DIR *dir);
+ * Used by Pthread API implementation for Windows
+ */
+extern int err_win_to_posix(DWORD winerr);