From 0669d41076367ddd8429b50092a4141e100c57ae Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 2 Apr 2005 11:37:53 +0000 Subject: [PATCH] Atomics are in namespace __gnu_cxx for g++ 3.4+ [SVN r27929] --- include/boost/detail/atomic_count_gcc.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/boost/detail/atomic_count_gcc.hpp b/include/boost/detail/atomic_count_gcc.hpp index 9fa661f..1160e44 100644 --- a/include/boost/detail/atomic_count_gcc.hpp +++ b/include/boost/detail/atomic_count_gcc.hpp @@ -10,6 +10,7 @@ // // Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd. // Copyright (c) 2002 Lars Gullik Bjønnes +// Copyright 2003-2005 Peter Dimov // // Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at @@ -24,6 +25,13 @@ namespace boost namespace detail { +#if defined(__GLIBCXX__) // g++ 3.4+ + +using __gnu_cxx::__atomic_add; +using __gnu_cxx::__exchange_and_add; + +#endif + class atomic_count { public: