Skip to content

Commit 8e23ffd

Browse files
committed
Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.
1 parent a814721 commit 8e23ffd

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

include/boost/algorithm/string/compare.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ namespace boost {
6565
template< typename T1, typename T2 >
6666
bool operator()( const T1& Arg1, const T2& Arg2 ) const
6767
{
68-
#if defined(__BORLANDC__) && (__BORLANDC__ >= 0x560) && (__BORLANDC__ <= 0x564) && !defined(_USE_OLD_RW_STL)
68+
#if defined(BOOST_BORLANDC) && (BOOST_BORLANDC >= 0x560) && (BOOST_BORLANDC <= 0x564) && !defined(_USE_OLD_RW_STL)
6969
return std::toupper(Arg1)==std::toupper(Arg2);
7070
#else
7171
return std::toupper<T1>(Arg1,m_Loc)==std::toupper<T2>(Arg2,m_Loc);
@@ -118,7 +118,7 @@ namespace boost {
118118
template< typename T1, typename T2 >
119119
bool operator()( const T1& Arg1, const T2& Arg2 ) const
120120
{
121-
#if defined(__BORLANDC__) && (__BORLANDC__ >= 0x560) && (__BORLANDC__ <= 0x564) && !defined(_USE_OLD_RW_STL)
121+
#if defined(BOOST_BORLANDC) && (BOOST_BORLANDC >= 0x560) && (BOOST_BORLANDC <= 0x564) && !defined(_USE_OLD_RW_STL)
122122
return std::toupper(Arg1)<std::toupper(Arg2);
123123
#else
124124
return std::toupper<T1>(Arg1,m_Loc)<std::toupper<T2>(Arg2,m_Loc);
@@ -171,7 +171,7 @@ namespace boost {
171171
template< typename T1, typename T2 >
172172
bool operator()( const T1& Arg1, const T2& Arg2 ) const
173173
{
174-
#if defined(__BORLANDC__) && (__BORLANDC__ >= 0x560) && (__BORLANDC__ <= 0x564) && !defined(_USE_OLD_RW_STL)
174+
#if defined(BOOST_BORLANDC) && (BOOST_BORLANDC >= 0x560) && (BOOST_BORLANDC <= 0x564) && !defined(_USE_OLD_RW_STL)
175175
return std::toupper(Arg1)<=std::toupper(Arg2);
176176
#else
177177
return std::toupper<T1>(Arg1,m_Loc)<=std::toupper<T2>(Arg2,m_Loc);

include/boost/algorithm/string/detail/case_conv.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace boost {
4040
// Operation
4141
CharT operator ()( CharT Ch ) const
4242
{
43-
#if defined(__BORLANDC__) && (__BORLANDC__ >= 0x560) && (__BORLANDC__ <= 0x564) && !defined(_USE_OLD_RW_STL)
43+
#if defined(BOOST_BORLANDC) && (BOOST_BORLANDC >= 0x560) && (BOOST_BORLANDC <= 0x564) && !defined(_USE_OLD_RW_STL)
4444
return std::tolower( static_cast<typename boost::make_unsigned <CharT>::type> ( Ch ));
4545
#else
4646
return std::tolower<CharT>( Ch, *m_Loc );
@@ -62,7 +62,7 @@ namespace boost {
6262
// Operation
6363
CharT operator ()( CharT Ch ) const
6464
{
65-
#if defined(__BORLANDC__) && (__BORLANDC__ >= 0x560) && (__BORLANDC__ <= 0x564) && !defined(_USE_OLD_RW_STL)
65+
#if defined(BOOST_BORLANDC) && (BOOST_BORLANDC >= 0x560) && (BOOST_BORLANDC <= 0x564) && !defined(_USE_OLD_RW_STL)
6666
return std::toupper( static_cast<typename boost::make_unsigned <CharT>::type> ( Ch ));
6767
#else
6868
return std::toupper<CharT>( Ch, *m_Loc );

include/boost/algorithm/string/detail/classification.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ namespace boost {
4545
return std::use_facet< std::ctype<CharT> >(m_Locale).is( m_Type, Ch );
4646
}
4747

48-
#if defined(__BORLANDC__) && (__BORLANDC__ >= 0x560) && (__BORLANDC__ <= 0x582) && !defined(_USE_OLD_RW_STL)
48+
#if defined(BOOST_BORLANDC) && (BOOST_BORLANDC >= 0x560) && (BOOST_BORLANDC <= 0x582) && !defined(_USE_OLD_RW_STL)
4949
template<>
5050
bool operator()( char const Ch ) const
5151
{

include/boost/algorithm/string/detail/formatter.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ namespace boost {
4242
m_Format(::boost::begin(Format), ::boost::end(Format)) {}
4343

4444
// Operation
45-
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x564))
45+
#if BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x564))
4646
template<typename Range2T>
4747
result_type& operator()(const Range2T&)
4848
{

0 commit comments

Comments
 (0)