diff --git a/extras/src/sp_debug_hooks.cpp b/extras/src/sp_debug_hooks.cpp index 3193936..7484139 100644 --- a/extras/src/sp_debug_hooks.cpp +++ b/extras/src/sp_debug_hooks.cpp @@ -73,7 +73,7 @@ void * operator new(size_t n) throw(bad_alloc) return p; } -#if !defined(__BORLANDC__) || (__BORLANDC__ > 0x551) +#if !defined(BOOST_BORLANDC) || (BOOST_BORLANDC > 0x551) void * operator new(size_t n, nothrow_t const &) throw() { @@ -95,7 +95,7 @@ void * operator new[](size_t n) throw(bad_alloc) return p; } -#if !defined(__BORLANDC__) || (__BORLANDC__ > 0x551) +#if !defined(BOOST_BORLANDC) || (BOOST_BORLANDC > 0x551) void * operator new[](size_t n, nothrow_t const &) throw() { @@ -205,7 +205,7 @@ void operator delete(void * p) throw() free(pm); } -#if !defined(__BORLANDC__) || (__BORLANDC__ > 0x551) +#if !defined(BOOST_BORLANDC) || (BOOST_BORLANDC > 0x551) void operator delete(void * p, nothrow_t const &) throw() { @@ -231,7 +231,7 @@ void operator delete[](void * p) throw() free(pm); } -#if !defined(__BORLANDC__) || (__BORLANDC__ > 0x551) +#if !defined(BOOST_BORLANDC) || (BOOST_BORLANDC > 0x551) void operator delete[](void * p, nothrow_t const &) throw() { diff --git a/include/boost/smart_ptr/bad_weak_ptr.hpp b/include/boost/smart_ptr/bad_weak_ptr.hpp index c21a2c5..0a3cfcb 100644 --- a/include/boost/smart_ptr/bad_weak_ptr.hpp +++ b/include/boost/smart_ptr/bad_weak_ptr.hpp @@ -20,7 +20,7 @@ #include #include -#ifdef __BORLANDC__ +#ifdef BOOST_BORLANDC # pragma warn -8026 // Functions with excep. spec. are not expanded inline #endif @@ -33,7 +33,7 @@ namespace boost // is compiled with -ps, the compiler issues an error. // Hence, the temporary #pragma option -pc below. -#if defined(__BORLANDC__) && __BORLANDC__ <= 0x564 +#if defined(BOOST_BORLANDC) && BOOST_BORLANDC <= 0x564 # pragma option push -pc #endif @@ -57,13 +57,13 @@ public: # pragma clang diagnostic pop #endif -#if defined(__BORLANDC__) && __BORLANDC__ <= 0x564 +#if defined(BOOST_BORLANDC) && BOOST_BORLANDC <= 0x564 # pragma option pop #endif } // namespace boost -#ifdef __BORLANDC__ +#ifdef BOOST_BORLANDC # pragma warn .8026 // Functions with excep. spec. are not expanded inline #endif diff --git a/include/boost/smart_ptr/detail/shared_count.hpp b/include/boost/smart_ptr/detail/shared_count.hpp index d56718f..69cc915 100644 --- a/include/boost/smart_ptr/detail/shared_count.hpp +++ b/include/boost/smart_ptr/detail/shared_count.hpp @@ -18,7 +18,7 @@ // http://www.boost.org/LICENSE_1_0.txt) // -#ifdef __BORLANDC__ +#if defined(__BORLANDC__) && !defined(__clang__) # pragma warn -8027 // Functions containing try are not expanded inline #endif @@ -661,7 +661,7 @@ inline shared_count::shared_count( weak_count const & r, sp_nothrow_tag ) BOOST_ #pragma GCC diagnostic pop #endif -#ifdef __BORLANDC__ +#if defined(__BORLANDC__) && !defined(__clang__) # pragma warn .8027 // Functions containing try are not expanded inline #endif diff --git a/include/boost/smart_ptr/detail/sp_convertible.hpp b/include/boost/smart_ptr/detail/sp_convertible.hpp index 4bba9ed..af42288 100644 --- a/include/boost/smart_ptr/detail/sp_convertible.hpp +++ b/include/boost/smart_ptr/detail/sp_convertible.hpp @@ -26,7 +26,7 @@ # define BOOST_SP_NO_SP_CONVERTIBLE #endif -#if !defined( BOOST_SP_NO_SP_CONVERTIBLE ) && defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x630 ) +#if !defined( BOOST_SP_NO_SP_CONVERTIBLE ) && defined( BOOST_BORLANDC ) && ( BOOST_BORLANDC < 0x630 ) # define BOOST_SP_NO_SP_CONVERTIBLE #endif diff --git a/include/boost/smart_ptr/make_shared_object.hpp b/include/boost/smart_ptr/make_shared_object.hpp index c681602..d726ec3 100644 --- a/include/boost/smart_ptr/make_shared_object.hpp +++ b/include/boost/smart_ptr/make_shared_object.hpp @@ -187,7 +187,7 @@ template< class T > struct sp_if_not_array< T[] > { }; -#if !defined( __BORLANDC__ ) || !BOOST_WORKAROUND( __BORLANDC__, < 0x600 ) +#if !defined( BOOST_BORLANDC ) || !BOOST_WORKAROUND( BOOST_BORLANDC, < 0x600 ) template< class T, std::size_t N > struct sp_if_not_array< T[N] > { diff --git a/include/boost/smart_ptr/shared_ptr.hpp b/include/boost/smart_ptr/shared_ptr.hpp index 0405ab0..6674b15 100644 --- a/include/boost/smart_ptr/shared_ptr.hpp +++ b/include/boost/smart_ptr/shared_ptr.hpp @@ -86,7 +86,7 @@ template< class T > struct sp_element< T[] > typedef T type; }; -#if !defined( __BORLANDC__ ) || !BOOST_WORKAROUND( __BORLANDC__, < 0x600 ) +#if !defined( BOOST_BORLANDC ) || !BOOST_WORKAROUND( BOOST_BORLANDC, < 0x600 ) template< class T, std::size_t N > struct sp_element< T[N] > { @@ -135,7 +135,7 @@ template< class T > struct sp_dereference< T[] > typedef void type; }; -#if !defined( __BORLANDC__ ) || !BOOST_WORKAROUND( __BORLANDC__, < 0x600 ) +#if !defined( BOOST_BORLANDC ) || !BOOST_WORKAROUND( BOOST_BORLANDC, < 0x600 ) template< class T, std::size_t N > struct sp_dereference< T[N] > { @@ -160,7 +160,7 @@ template< class T > struct sp_member_access< T[] > typedef void type; }; -#if !defined( __BORLANDC__ ) || !BOOST_WORKAROUND( __BORLANDC__, < 0x600 ) +#if !defined( BOOST_BORLANDC ) || !BOOST_WORKAROUND( BOOST_BORLANDC, < 0x600 ) template< class T, std::size_t N > struct sp_member_access< T[N] > { @@ -185,7 +185,7 @@ template< class T > struct sp_array_access< T[] > typedef T & type; }; -#if !defined( __BORLANDC__ ) || !BOOST_WORKAROUND( __BORLANDC__, < 0x600 ) +#if !defined( BOOST_BORLANDC ) || !BOOST_WORKAROUND( BOOST_BORLANDC, < 0x600 ) template< class T, std::size_t N > struct sp_array_access< T[N] > { diff --git a/test/smart_ptr_test.cpp b/test/smart_ptr_test.cpp index 3e46851..f4ad973 100644 --- a/test/smart_ptr_test.cpp +++ b/test/smart_ptr_test.cpp @@ -31,7 +31,7 @@ #endif -#ifdef __BORLANDC__ +#ifdef BOOST_BORLANDC # pragma warn -8092 // template argument passed to 'find' is not an iterator #endif