Revision 71064e3f86fbf2eb5c2b55a3024051f9542ae229 authored by Frank Li on 16 September 2009, 08:20:22 UTC, committed by Junio C Hamano on 19 September 2009, 03:00:42 UTC
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>
1 parent d7fa500
History
File Mode Size
.gitignore -rw-r--r-- 47 bytes
Git.pm -rw-r--r-- 35.1 KB
Makefile -rw-r--r-- 1.4 KB
Makefile.PL -rw-r--r-- 745 bytes
private-Error.pm -rw-r--r-- 18.6 KB

back to top