diff options
author | Alexander Potapenko <glider@google.com> | 2012-01-27 15:15:04 +0000 |
---|---|---|
committer | Alexander Potapenko <glider@google.com> | 2012-01-27 15:15:04 +0000 |
commit | 6f0452914ec76c786eb865983793bc03b00fc7b6 (patch) | |
tree | c9436071c73edb5be08daf3dafc3734faeab984d /lib/asan/asan_interceptors.h | |
parent | c8365231004cb1d956aba4164c89ea1398eadd6b (diff) | |
download | compiler-rt-6f0452914ec76c786eb865983793bc03b00fc7b6.tar.gz compiler-rt-6f0452914ec76c786eb865983793bc03b00fc7b6.tar.bz2 compiler-rt-6f0452914ec76c786eb865983793bc03b00fc7b6.tar.xz |
Make compiler-rt/trunk/lib/asan compileable with Visual Studio 2008 on Windows.
Patch by Timur Iskhodzhanov (timurrrr@google.com)
To test:
$ cl /c *.c*
in the asan directory.
The code fails to link if you omit the "/c" part but that's one of the
next steps,
as well as a few TODO's I've put into the Windows-specific code.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@149130 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_interceptors.h')
-rw-r--r-- | lib/asan/asan_interceptors.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/asan/asan_interceptors.h b/lib/asan/asan_interceptors.h index 7f9e812e..483bb48e 100644 --- a/lib/asan/asan_interceptors.h +++ b/lib/asan/asan_interceptors.h @@ -16,7 +16,10 @@ #include "asan_internal.h" -#ifdef __APPLE__ +#if defined(__APPLE__) +# define WRAP(x) wrap_##x +#elif defined(_WIN32) +// TODO(timurrrr): we're likely to use something else later on Windows. # define WRAP(x) wrap_##x #else # define WRAP(x) x |