summaryrefslogtreecommitdiff
path: root/cpp/src/IceUtil/Shared.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IceUtil/Shared.cpp')
-rwxr-xr-xcpp/src/IceUtil/Shared.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/cpp/src/IceUtil/Shared.cpp b/cpp/src/IceUtil/Shared.cpp
index de10b77bc7b..f72583c2711 100755
--- a/cpp/src/IceUtil/Shared.cpp
+++ b/cpp/src/IceUtil/Shared.cpp
@@ -9,10 +9,10 @@
#include <IceUtil/Shared.h>
-#ifdef ICE_HAS_ATOMIC_FUNCTIONS
-
namespace IceUtilInternal
{
+#ifdef ICE_HAS_ATOMIC_FUNCTIONS
+
/*
* atomicSet - set ice_atomic variable
* @v: pointer of type AtomicCounter
@@ -80,9 +80,8 @@ inline int atomicExchangeAdd(int i, AtomicCounter* v)
: "memory");
return tmp + i;
}
-}
#endif
-
+}
using namespace IceUtil;
using namespace IceUtilInternal;