From 3399df597eda8b717bf3754f0b7069cddd2a8d8c Mon Sep 17 00:00:00 2001 From: Darin Adler Date: Mon, 24 Sep 2001 23:45:49 +0000 Subject: [PATCH] Add case for Mac OS X to the WCHAR_MIN/WCHAR_MAX section. [SVN r11242] --- include/boost/integer_traits.hpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/boost/integer_traits.hpp b/include/boost/integer_traits.hpp index 441a72b..997b98f 100644 --- a/include/boost/integer_traits.hpp +++ b/include/boost/integer_traits.hpp @@ -90,12 +90,15 @@ class integer_traits #elif defined(__BORLANDC__) || defined(__CYGWIN__) || defined(__MINGW32__) || (defined(__BEOS__) && defined(__GNUC__)) // No WCHAR_MIN and WCHAR_MAX, whar_t is short and unsigned: public detail::integer_traits_base -#elif defined(__sgi) && (!defined(__SGI_STL_PORT) || __SGI_STL_PORT < 0x400) - // SGI MIPSpro with native library doesn't have them, either +#elif (defined(__sgi) && (!defined(__SGI_STL_PORT) || __SGI_STL_PORT < 0x400)) || (defined __APPLE__) + // No WCHAR_MIN and WCHAR_MAX, wchar_t has the same range as int. + // SGI MIPSpro with native library is one case like this. + // Mac OS X with native library is another. public detail::integer_traits_base #elif defined(__hpux) && defined(__GNUC__) && !defined(__SGI_STL_PORT) - // GCC 2.95.2 doesn't have them on HP-UX, either - // (also, std::numeric_limits appears to return the wrong values) + // No WCHAR_MIN and WCHAR_MAX, wchar_t has the same range as unsigned int. + // HP-UX GCC 2.95.2 is a case like this + // (also, std::numeric_limits appears to return the wrong values). public detail::integer_traits_base #else #error No WCHAR_MIN and WCHAR_MAX present, please adjust integer_traits<> for your compiler.