diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-08-18 19:55:35 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-08-18 19:55:35 +0000 |
commit | 3a025f6a8265d831b68e9ac96b8b53e37ca029a4 (patch) | |
tree | f91e217de1ea8c3de8503c1c177c19fc10814c3a /lib/sanitizer_common/sanitizer_printf.cc | |
parent | cbaa006aa2428a35c050c28fd5891a409e9c2b5e (diff) |
Revert "[ASan/Win] Remove a hack that seems not to be required with VS2013 anymore" (r215708)
This is still needed for VS2012.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@215930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_printf.cc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_printf.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_printf.cc b/lib/sanitizer_common/sanitizer_printf.cc index fb0496571..801813124 100644 --- a/lib/sanitizer_common/sanitizer_printf.cc +++ b/lib/sanitizer_common/sanitizer_printf.cc @@ -22,6 +22,10 @@ #include <stdio.h> #include <stdarg.h> +#if SANITIZER_WINDOWS && !defined(va_copy) +# define va_copy(dst, src) ((dst) = (src)) +#endif + namespace __sanitizer { StaticSpinMutex CommonSanitizerReportMutex; |