Change __BORLANDC__ to BOOST_BORLANDC, which is defined in Boost config for the Embarcadero non-clang-based compilers.

This commit is contained in:
Edward Diener
2020-03-29 08:30:32 -04:00
parent bee5818e18
commit 52c02d1237
5 changed files with 7 additions and 7 deletions

View File

@ -16,7 +16,7 @@
#define BOOST_INTEGER_INTEGER_LOG2_HPP
#include <assert.h>
#ifdef __BORLANDC__
#if defined(__BORLANDC__) && !defined(__clang__)
#include <climits>
#endif
#include <boost/limits.hpp>
@ -75,7 +75,7 @@ namespace boost {
template <typename T>
struct width {
#ifdef __BORLANDC__
#ifdef BOOST_BORLANDC
BOOST_STATIC_CONSTANT(int, value = sizeof(T) * CHAR_BIT);
#else
BOOST_STATIC_CONSTANT(int, value = (std::numeric_limits<T>::digits));