summaryrefslogtreecommitdiff
path: root/compat/vcbuild
diff options
context:
space:
mode:
authorLibravatar Kirill Smelkov <kirr@mns.spb.ru>2014-04-09 16:48:27 +0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-04-09 10:08:35 -0700
commit22f4c27e68f448d5fce316a73ea3f7bab6aa1268 (patch)
treed63ccf7b1a113cb06187b64c8fee86e3b04fd713 /compat/vcbuild
parentcombine-diff: speed it up, by using multiparent diff tree-walker directly (diff)
downloadtgif-22f4c27e68f448d5fce316a73ea3f7bab6aa1268.tar.xz
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>
Diffstat (limited to 'compat/vcbuild')
-rw-r--r--compat/vcbuild/include/alloca.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/compat/vcbuild/include/alloca.h b/compat/vcbuild/include/alloca.h
deleted file mode 100644
index c0d7985b7e..0000000000
--- a/compat/vcbuild/include/alloca.h
+++ /dev/null
@@ -1 +0,0 @@
-#include <malloc.h>