Atomics are in namespace __gnu_cxx for g++ 3.4+

[SVN r27929]
This commit is contained in:
Peter Dimov
2005-04-02 11:37:53 +00:00
parent 8f2beee8e9
commit 0669d41076

View File

@@ -10,6 +10,7 @@
// //
// Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd. // Copyright (c) 2001, 2002 Peter Dimov and Multi Media Ltd.
// Copyright (c) 2002 Lars Gullik Bj<42>nnes <larsbj@lyx.org> // Copyright (c) 2002 Lars Gullik Bj<42>nnes <larsbj@lyx.org>
// Copyright 2003-2005 Peter Dimov
// //
// Distributed under the Boost Software License, Version 1.0. (See // Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at // accompanying file LICENSE_1_0.txt or copy at
@@ -24,6 +25,13 @@ namespace boost
namespace detail namespace detail
{ {
#if defined(__GLIBCXX__) // g++ 3.4+
using __gnu_cxx::__atomic_add;
using __gnu_cxx::__exchange_and_add;
#endif
class atomic_count class atomic_count
{ {
public: public: