mirror of
https://github.com/boostorg/smart_ptr.git
synced 2025-07-31 21:24:40 +02:00
Atomics are in namespace __gnu_cxx for g++ 3.4+
[SVN r27929]
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user