Skip to content

Commit 9fdff54

Browse files
committed
[libc] Fix sanitizer
1 parent 1597774 commit 9fdff54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/__support/macros/sanitizer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@
4747
// Functions to unpoison memory
4848
//-----------------------------------------------------------------------------
4949

50-
#if LIBC_HAVE_MEMORY_SANITIZER
50+
#ifdef LIBC_HAVE_MEMORY_SANITIZER
5151
#include <sanitizer/msan_interface.h>
5252
#define MSAN_UNPOISON(addr, size) __msan_unpoison(addr, size)
5353
#else
5454
#define MSAN_UNPOISON(ptr, size)
5555
#endif
5656

57-
#if LIBC_HAVE_ADDRESS_SANITIZER
57+
#ifdef LIBC_HAVE_ADDRESS_SANITIZER
5858
#include <sanitizer/asan_interface.h>
5959
#define ASAN_POISON_MEMORY_REGION(addr, size) \
6060
__asan_poison_memory_region((addr), (size))

0 commit comments

Comments
 (0)