summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/Shared.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/src/IceE/Shared.cpp')
-rw-r--r--cppe/src/IceE/Shared.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cppe/src/IceE/Shared.cpp b/cppe/src/IceE/Shared.cpp
index 86925417f7d..55a189114c8 100644
--- a/cppe/src/IceE/Shared.cpp
+++ b/cppe/src/IceE/Shared.cpp
@@ -24,23 +24,23 @@ IceUtil::SimpleShared::SimpleShared(const SimpleShared&) :
}
IceUtil::Shared::Shared() :
-#ifndef ICE_HAS_ATOMIC_FUNCTIONS
+#ifndef ICEE_HAS_ATOMIC_FUNCTIONS
_ref(0),
#endif
_noDelete(false)
{
-#ifdef ICE_HAS_ATOMIC_FUNCTIONS
+#ifdef ICEE_HAS_ATOMIC_FUNCTIONS
ice_atomic_set(&_ref, 0);
#endif
}
IceUtil::Shared::Shared(const Shared&) :
-#ifndef ICE_HAS_ATOMIC_FUNCTIONS
+#ifndef ICEE_HAS_ATOMIC_FUNCTIONS
_ref(0),
#endif
_noDelete(false)
{
-#ifdef ICE_HAS_ATOMIC_FUNCTIONS
+#ifdef ICEE_HAS_ATOMIC_FUNCTIONS
ice_atomic_set(&_ref, 0);
#endif
}
@@ -50,7 +50,7 @@ IceUtil::Shared::__getRef() const
{
#if defined(_WIN32)
return InterlockedExchangeAdd(const_cast<LONG*>(&_ref), 0);
-#elif defined(ICE_HAS_ATOMIC_FUNCTIONS)
+#elif defined(ICEE_HAS_ATOMIC_FUNCTIONS)
return ice_atomic_exchange_add(0, const_cast<ice_atomic_t*>(&_ref));
#else
_mutex.lock();