git-commit-vandalism/compat/win32
Kirill Smelkov 22f4c27e68 mingw: activate alloca
Both MSVC and MINGW have alloca(3) definitions in malloc.h, so by moving
win32-compat alloca.h from compat/vcbuild/include/ to compat/win32/ ,
which is included by both MSVC and MINGW CFLAGS, we can make alloca()
work on both those Windows environments.

In MINGW, malloc.h has explicit check for GNUC and if it is so, defines
alloca to __builtin_alloca, so it looks like we don't need to add any
code to here-shipped alloca.h to get optimum performance.

Compile-tested on Windows in MSysGit.

Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Acked-by: Erik Faye-Lund <kusmabite@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-04-09 10:08:35 -07:00
..
alloca.h mingw: activate alloca 2014-04-09 10:08:35 -07:00
dirent.c win32: use our own dirent.h 2010-11-23 16:06:50 -08:00
dirent.h win32: use our own dirent.h 2010-11-23 16:06:50 -08:00
pthread.c compat/win32/pthread.c: Fix a sparse warning 2013-04-28 12:26:45 -07:00
pthread.h compat/win32/pthread.h: Add an pthread_key_delete() implementation 2012-04-11 11:08:43 -07:00
syslog.c mingw: avoid using strbuf in syslog 2011-10-07 16:12:25 -07:00
syslog.h mingw: implement syslog 2010-11-04 16:53:49 -07:00