diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2023-05-16 15:13:54 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-17 20:35:57 +0000 |
commit | d2a24d73cb763b1564c8907bf293c467aabb5b6c (patch) | |
tree | 0e926ce7717864a2b4a2b8f56e06b562bf02780b /src/mongo/unittest | |
parent | e90dcb18de438b6b6ab02b2c921463fd35b866cb (diff) | |
download | mongo-d2a24d73cb763b1564c8907bf293c467aabb5b6c.tar.gz |
SERVER-77193 Centralize the macro definition of __has_feature into one place
Diffstat (limited to 'src/mongo/unittest')
-rw-r--r-- | src/mongo/unittest/death_test.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/unittest/death_test.cpp b/src/mongo/unittest/death_test.cpp index 7a6006a0b8c..7a166d0e777 100644 --- a/src/mongo/unittest/death_test.cpp +++ b/src/mongo/unittest/death_test.cpp @@ -52,7 +52,7 @@ #include <TargetConditionals.h> #endif -#if defined(__has_feature) && __has_feature(thread_sanitizer) +#if __has_feature(thread_sanitizer) #include <sanitizer/common_interface_defs.h> #endif @@ -67,7 +67,6 @@ #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest -#if defined(__has_feature) #if __has_feature(thread_sanitizer) #define TSAN_ENABLED_ #endif @@ -77,7 +76,6 @@ #if __has_feature(memory_sanitizer) #define MSAN_ENABLED_ #endif -#endif // __has_feature namespace mongo { namespace unittest { |