Skip to content

Commit e06758c

Browse files
committed
Add exception of sanitizer for windows 2019.
1 parent 3a0b678 commit e06758c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

source/log/source/log_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
#include <stdlib.h>
3131

32-
#if defined(__ADDRESS_SANITIZER__) || defined(__THREAD_SANITIZER__) || defined(__MEMORY_SANITIZER__)
32+
#if (defined(__ADDRESS_SANITIZER__) || defined(__THREAD_SANITIZER__) || defined(__MEMORY_SANITIZER__)) && !(defined(_WIN32) && defined(_MSC_VER) && (_MSC_VER < 1932))
3333
#include <sanitizer/common_interface_defs.h>
3434
#endif
3535

source/portability/include/portability/portability_assert.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ extern "C" {
6060
#define portability_static_assert(predicate, message) portability_static_assert_impl(portability_static_assert_impl_expr, predicate)
6161
#endif
6262

63-
#if defined(__ADDRESS_SANITIZER__) || defined(__THREAD_SANITIZER__) || defined(__MEMORY_SANITIZER__)
63+
#if (defined(__ADDRESS_SANITIZER__) || defined(__THREAD_SANITIZER__) || defined(__MEMORY_SANITIZER__)) && !(defined(_WIN32) && defined(_MSC_VER) && (_MSC_VER < 1932))
6464
#include <sanitizer/common_interface_defs.h>
6565
#define portability_assert(condition) \
6666
do \

0 commit comments

Comments
 (0)