summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-02-26 05:08:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-02-26 09:06:50 (GMT)
commitab8632ae36d2e5faf524309696725b60ec18e588 (patch)
tree1ed044a4c4546d92e2e09565fb81d7fec7dcaad0 /compat
parent046613c5465e4fc0611f93a5ef31d3815fb50c22 (diff)
downloadgit-ab8632ae36d2e5faf524309696725b60ec18e588.zip
git-ab8632ae36d2e5faf524309696725b60ec18e588.tar.gz
git-ab8632ae36d2e5faf524309696725b60ec18e588.tar.bz2
compat: provide a fallback va_copy definition
va_copy is C99. We have avoided using va_copy many times in the past, which has led to a bunch of cut-and-paste. From everything I found searching the web, implementations have historically either provided va_copy or just let your code assume that simple assignment of worked. So my guess is that this will be sufficient, though we won't really know for sure until somebody reports a problem. Signed-off-by: Jeff King <peff@peff.net> Improved-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'compat')
-rw-r--r--compat/msvc.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/compat/msvc.h b/compat/msvc.h
index 023aba0..a33b01c 100644
--- a/compat/msvc.h
+++ b/compat/msvc.h
@@ -9,7 +9,6 @@
#define inline __inline
#define __inline__ __inline
#define __attribute__(x)
-#define va_copy(dst, src) ((dst) = (src))
#define strncasecmp _strnicmp
#define ftruncate _chsize