Skip to content

Commit 17886fc

Browse files
eldienerstefanseefeld
authored andcommitted
Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.
1 parent 15115eb commit 17886fc

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

include/boost/python/def_visitor.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ template <class T, class X1, class X2, class X3> class class_;
1616
class def_visitor_access
1717
{
1818
# if defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS) \
19-
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
19+
|| BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x551))
2020
// Tasteless as this may seem, making all members public allows member templates
2121
// to work in the absence of member template friends.
2222
public:
@@ -52,7 +52,7 @@ class def_visitor
5252
friend class def_visitor_access;
5353

5454
# if defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS) \
55-
|| BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x551))
55+
|| BOOST_WORKAROUND(BOOST_BORLANDC, BOOST_TESTED_AT(0x551))
5656
// Tasteless as this may seem, making all members public allows member templates
5757
// to work in the absence of member template friends.
5858
public:

include/boost/python/detail/msvc_typeinfo.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ inline typeinfo typeid_ref(type<T>*, ...)
4747
return detail::typeid_ref_1((T(*)())0);
4848
}
4949

50-
#if defined(BOOST_MSVC) || (defined(__BORLANDC__) && !defined(BOOST_DISABLE_WIN32))
50+
#if defined(BOOST_MSVC) || (defined(BOOST_BORLANDC) && !defined(BOOST_DISABLE_WIN32))
5151
# define BOOST_PYTT_DECL __cdecl
5252
#else
5353
# define BOOST_PYTT_DECL /**/

include/boost/python/detail/wrap_python.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ typedef int pid_t;
146146

147147
# undef hypot // undo the evil #define left by Python.
148148

149-
# elif defined(__BORLANDC__)
149+
# elif defined(__BORLANDC__) && !defined(__clang__)
150150
# undef HAVE_HYPOT
151151
# define HAVE_HYPOT 1
152152
# endif

0 commit comments

Comments
 (0)