sanitizer_printf.cc: guard the va_copy hack on _MSC_VER

llvm-svn: 215932
This commit is contained in:
Hans Wennborg 2014-08-18 20:23:16 +00:00
parent ec5ca03674
commit 4834653872
1 changed files with 2 additions and 1 deletions

View File

@ -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