summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2014-08-18 20:23:16 +0000
committerHans Wennborg <hans@hanshq.net>2014-08-18 20:23:16 +0000
commit9d3da3111e514c1e969e05588843b6b8289288ba (patch)
treee08b140080d9f16276084e4d57596134bdb87137
parent3a025f6a8265d831b68e9ac96b8b53e37ca029a4 (diff)
sanitizer_printf.cc: guard the va_copy hack on _MSC_VER
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215932 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/sanitizer_common/sanitizer_printf.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_printf.cc b/lib/sanitizer_common/sanitizer_printf.cc
index 801813124..494f1315d 100644
--- a/lib/sanitizer_common/sanitizer_printf.cc
+++ b/lib/sanitizer_common/sanitizer_printf.cc
@@ -22,7 +22,8 @@
#include <stdio.h>
#include <stdarg.h>
-#if SANITIZER_WINDOWS && !defined(va_copy)
+#if SANITIZER_WINDOWS && defined(_MSC_VER) && _MSC_VER < 1800 && \
+ !defined(va_copy)
# define va_copy(dst, src) ((dst) = (src))
#endif