author | Johannes Sixt <johannes.sixt@telecom.at> | |
Sat, 1 Dec 2007 20:24:59 +0000 (21:24 +0100) | ||
committer | Johannes Sixt <johannes.sixt@telecom.at> | |
Sun, 22 Jun 2008 09:32:45 +0000 (11:32 +0200) | ||
commit | f4626df51f63d53b89ff01de54cbf7558217ea2b | |
tree | 3f2e8f987cab6e12fcb8fa4d4a6004e60e57b053 | tree | snapshot |
parent | 58eda02257a89df6e05f504bdf87e578d90f3b5e | commit | diff |
Add target architecture MinGW.
With this change GIT can be compiled and linked using MinGW. Builtins
that only read the repository such as the log family and grep already
work.
Simple stubs are provided for a number of functions that the Windows C
runtime does not offer. They will be completed in later patches.
However, a fix for the snprintf/vsnprintf replacement is applied here
to avoid buffer overflows.
Dmitry Kakurin pointed out that access(..., X_OK) would always fails on
Vista and suggested the -D__USE_MINGW_ACCESS workaround.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
With this change GIT can be compiled and linked using MinGW. Builtins
that only read the repository such as the log family and grep already
work.
Simple stubs are provided for a number of functions that the Windows C
runtime does not offer. They will be completed in later patches.
However, a fix for the snprintf/vsnprintf replacement is applied here
to avoid buffer overflows.
Dmitry Kakurin pointed out that access(..., X_OK) would always fails on
Vista and suggested the -D__USE_MINGW_ACCESS workaround.
Signed-off-by: Johannes Sixt <johannes.sixt@telecom.at>
Makefile | diff | blob | history | |
compat/mingw.c | [new file with mode: 0644] | blob |
compat/mingw.h | [new file with mode: 0644] | blob |
compat/snprintf.c | diff | blob | history | |
git-compat-util.h | diff | blob | history |