Skip to content

Commit

Permalink
Fix compiling problems under ClangC2.
Browse files Browse the repository at this point in the history
  • Loading branch information
gongminmin committed Feb 5, 2017
1 parent 1914721 commit d718d21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/boost/smart_ptr/detail/sp_counted_base.hpp
Expand Up @@ -20,7 +20,7 @@
#include <boost/config.hpp>
#include <boost/smart_ptr/detail/sp_has_sync.hpp>

#if defined( __clang__ ) && defined( __has_extension )
#if !defined( __c2__ ) && defined( __clang__ ) && defined( __has_extension )
# if __has_extension( __c_atomic__ )
# define BOOST_SP_HAS_CLANG_C11_ATOMICS
# endif
Expand Down
4 changes: 2 additions & 2 deletions include/boost/smart_ptr/detail/sp_has_sync.hpp
Expand Up @@ -22,15 +22,15 @@

#ifndef BOOST_SP_NO_SYNC

#if defined( __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 )
#if !defined( __c2__ ) && defined( __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4 )

# define BOOST_SP_HAS_SYNC

#elif defined( __IBMCPP__ ) && ( __IBMCPP__ >= 1210 )

# define BOOST_SP_HAS_SYNC

#elif defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 )
#elif !defined( __c2__ ) && defined( __GNUC__ ) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 )

#define BOOST_SP_HAS_SYNC

Expand Down

0 comments on commit d718d21

Please sign in to comment.