[compiler-rt] r215932 - sanitizer_printf.cc: guard the va_copy hack on _MSC_VER

Hans Wennborg hans at hanshq.net
Mon Aug 18 13:23:16 PDT 2014


Author: hans
Date: Mon Aug 18 15:23:16 2014
New Revision: 215932

URL: http://llvm.org/viewvc/llvm-project?rev=215932&view=rev
Log:
sanitizer_printf.cc: guard the va_copy hack on _MSC_VER

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc?rev=215932&r1=215931&r2=215932&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_printf.cc Mon Aug 18 15:23:16 2014
@@ -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
 





More information about the llvm-commits mailing list