summaryrefslogtreecommitdiff
path: root/src/mongo/stdx/sigaltstack_location_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/stdx/sigaltstack_location_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/stdx/sigaltstack_location_test.cpp')
-rw-r--r--src/mongo/stdx/sigaltstack_location_test.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/stdx/sigaltstack_location_test.cpp b/src/mongo/stdx/sigaltstack_location_test.cpp
index 6c57146721f..daf1a47a946 100644
--- a/src/mongo/stdx/sigaltstack_location_test.cpp
+++ b/src/mongo/stdx/sigaltstack_location_test.cpp
@@ -44,6 +44,8 @@
#include <unistd.h>
#endif
+#include "mongo/platform/compiler.h"
+
#if !MONGO_HAS_SIGALTSTACK
int main() {
@@ -53,10 +55,6 @@ int main() {
#else // MONGO_HAS_SIGALTSTACK
-#if !defined(__has_feature)
-#define __has_feature(x) 0
-#endif
-
namespace mongo::stdx {
namespace {