From 215b4d8ee76060e860fe4754cc55a17f3db7c49e Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Wed, 2 May 2001 15:44:02 +0000 Subject: [PATCH] compactify John Maddock's fix for Borland C++ / WCHAR_MIN, WCHAR_MAX [SVN r10004] --- include/boost/integer_traits.hpp | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/include/boost/integer_traits.hpp b/include/boost/integer_traits.hpp index 0c8afd4..59d1f40 100644 --- a/include/boost/integer_traits.hpp +++ b/include/boost/integer_traits.hpp @@ -82,18 +82,15 @@ class integer_traits { }; #ifndef BOOST_NO_INTRINSIC_WCHAR_T -#if defined(__BORLANDC__) -#ifndef WCHAR_MIN -#define WCHAR_MIN 0 -#endif -#ifndef WCHAR_MAX -#define WCHAR_MAX 0xFFFF -#endif -#endif template<> class integer_traits : public std::numeric_limits, +#if !defined(__BORLANDC__) public detail::integer_traits_base +#else + // Borland C++ does not have WCHAR_MIN and WCHAR_MAX + public detail::integer_traits_base +#endif { }; #endif // BOOST_NO_INTRINSIC_WCHAR_T