1
0
mirror of https://github.com/git/git.git synced 2024-11-18 06:24:14 +01:00
git/compat
Frank Li 71064e3f86 Test for WIN32 instead of __MINGW32_
The code which is conditional on MinGW32 is actually conditional on Windows.
Use the WIN32 symbol, which is defined by the MINGW32 and MSVC environments,
but not by Cygwin.

Define SNPRINTF_SIZE_CORR=1 for MSVC too, as its vsnprintf function does
not add NUL at the end of the buffer if the result fits the buffer size
exactly.

Signed-off-by: Frank Li <lznuaa@gmail.com>
Signed-off-by: Marius Storm-Olsen <mstormo@gmail.com>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2009-09-18 20:00:42 -07:00
..
fnmatch
nedmalloc Fix typo in nedmalloc warning fix 2009-06-11 14:18:52 -07:00
regex Change regerror() declaration from K&R style to ANSI C (C89) 2009-09-18 20:00:42 -07:00
basename.c
bswap.h make sure byte swapping is optimal for git 2009-08-18 14:16:37 -07:00
cygwin.c
cygwin.h
fopen.c
hstrerror.c
inet_ntop.c
inet_pton.c
memmem.c
mingw.c Fix __stdcall placement and function prototype 2009-09-18 20:00:42 -07:00
mingw.h Set _O_BINARY as default fmode for both MinGW and MSVC 2009-09-18 20:00:42 -07:00
mkdtemp.c
mkstemps.c
mmap.c
pread.c
qsort.c
setenv.c
snprintf.c Test for WIN32 instead of __MINGW32_ 2009-09-18 20:00:42 -07:00
strcasestr.c
strlcpy.c
strtoumax.c
unsetenv.c
win32.h Add include guards to compat/win32.h 2009-09-18 20:00:42 -07:00
win32mmap.c
winansi.c