diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-08-18 20:23:16 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-08-18 20:23:16 +0000 |
commit | 4834653872e2173cce998a5864a687b0e1e6164d (patch) | |
tree | 586914ad02786e4ea97ccfbc9ac1ebdc1ef07148 /compiler-rt | |
parent | ec5ca036747171bd834220281f6e098ad7f3d3d8 (diff) | |
download | bcm5719-llvm-4834653872e2173cce998a5864a687b0e1e6164d.tar.gz bcm5719-llvm-4834653872e2173cce998a5864a687b0e1e6164d.zip |
sanitizer_printf.cc: guard the va_copy hack on _MSC_VER
llvm-svn: 215932
Diffstat (limited to 'compiler-rt')
-rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_printf.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc b/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc index 8018131245b..494f1315de3 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_printf.cc +++ b/compiler-rt/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 |