summaryrefslogtreecommitdiff
path: root/misc.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-08-07 19:11:47 -0400
committerJeffrey Walton <noloader@gmail.com>2020-08-07 19:11:47 -0400
commit2c6e4b17d7a75a9cc9fe9ffd353981591de2be54 (patch)
tree5e7b46fd94bea76704951f150664c5dd1c730d28 /misc.h
parent7d0859d9dbfb394e4314e538567516e011db60cc (diff)
downloadcryptopp-git-2c6e4b17d7a75a9cc9fe9ffd353981591de2be54.tar.gz
Use define CRYPTOPP_CXX11_STATIC_INIT name
Diffstat (limited to 'misc.h')
-rw-r--r--misc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.h b/misc.h
index 12dad4c6..de668e9d 100644
--- a/misc.h
+++ b/misc.h
@@ -324,7 +324,7 @@ private:
template <class T, class F, int instance>
const T & Singleton<T, F, instance>::Ref(CRYPTOPP_NOINLINE_DOTDOTDOT) const
{
-#if defined(CRYPTOPP_CXX11_ATOMIC) && defined(CRYPTOPP_CXX11_SYNCHRONIZATION) && defined(CRYPTOPP_CXX11_DYNAMIC_INIT)
+#if defined(CRYPTOPP_CXX11_ATOMIC) && defined(CRYPTOPP_CXX11_SYNCHRONIZATION) && defined(CRYPTOPP_CXX11_STATIC_INIT)
static std::mutex s_mutex;
static std::atomic<T*> s_pObject;