summaryrefslogtreecommitdiff
path: root/src/mongo/util/concurrency/simplerwlock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/concurrency/simplerwlock.h')
-rw-r--r--src/mongo/util/concurrency/simplerwlock.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/util/concurrency/simplerwlock.h b/src/mongo/util/concurrency/simplerwlock.h
index 9803a97e4e0..e37450ca7f6 100644
--- a/src/mongo/util/concurrency/simplerwlock.h
+++ b/src/mongo/util/concurrency/simplerwlock.h
@@ -28,6 +28,8 @@
#pragma once
+#include "mongo/config.h"
+
#include <boost/noncopyable.hpp>
#include "mongo/base/string_data.h"
@@ -44,7 +46,7 @@ namespace mongo {
#else
RWLockBase m;
#endif
-#if defined(_WIN32) && defined(_DEBUG)
+#if defined(_WIN32) && defined(MONGO_CONFIG_DEBUG_BUILD)
AtomicUInt32 shares;
ThreadLocalValue<int> s;
unsigned tid;