summaryrefslogtreecommitdiff
path: root/src/mongo/unittest/death_test.cpp
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2023-05-16 15:13:54 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-05-17 20:35:57 +0000
commitd2a24d73cb763b1564c8907bf293c467aabb5b6c (patch)
tree0e926ce7717864a2b4a2b8f56e06b562bf02780b /src/mongo/unittest/death_test.cpp
parente90dcb18de438b6b6ab02b2c921463fd35b866cb (diff)
downloadmongo-d2a24d73cb763b1564c8907bf293c467aabb5b6c.tar.gz
SERVER-77193 Centralize the macro definition of __has_feature into one place
Diffstat (limited to 'src/mongo/unittest/death_test.cpp')
-rw-r--r--src/mongo/unittest/death_test.cpp4
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 {