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/scripting | |
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/scripting')
-rw-r--r-- | src/mongo/scripting/mozjs/implscope.cpp | 5 | ||||
-rw-r--r-- | src/mongo/scripting/mozjs/jscustomallocator.cpp | 4 |
2 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/scripting/mozjs/implscope.cpp b/src/mongo/scripting/mozjs/implscope.cpp index 243a1273212..28800bc5566 100644 --- a/src/mongo/scripting/mozjs/implscope.cpp +++ b/src/mongo/scripting/mozjs/implscope.cpp @@ -67,11 +67,6 @@ #define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kQuery - -#if !defined(__has_feature) -#define __has_feature(x) 0 -#endif - namespace mongo { // Generated symbols for JS files diff --git a/src/mongo/scripting/mozjs/jscustomallocator.cpp b/src/mongo/scripting/mozjs/jscustomallocator.cpp index 28afb60fa88..b3f4dd4c491 100644 --- a/src/mongo/scripting/mozjs/jscustomallocator.cpp +++ b/src/mongo/scripting/mozjs/jscustomallocator.cpp @@ -49,10 +49,6 @@ #define MONGO_NO_MALLOC_USABLE_SIZE #endif -#if !defined(__has_feature) -#define __has_feature(x) 0 -#endif - /** * This shim interface (which controls dynamic allocation within SpiderMonkey), * consciously uses std::malloc and friends over mongoMalloc. It does this |