From 21fe6251ab310df32b743f108e1a032031384af4 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 17 Dec 2004 11:56:15 +0000 Subject: [PATCH] Fix to ensure that is included on solaris (thanks to bug report by Caleb Epstein). [SVN r26542] --- include/boost/integer_traits.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/boost/integer_traits.hpp b/include/boost/integer_traits.hpp index 53e7089..d1ccdc4 100644 --- a/include/boost/integer_traits.hpp +++ b/include/boost/integer_traits.hpp @@ -21,7 +21,9 @@ // These are an implementation detail and not part of the interface #include -#if !defined(BOOST_NO_INTRINSIC_WCHAR_T) && !defined(BOOST_NO_CWCHAR) +// we need wchar.h for WCHAR_MAX/MIN but not all platforms provide it, +// and some may have but not ... +#if !defined(BOOST_NO_INTRINSIC_WCHAR_T) && (!defined(BOOST_NO_CWCHAR) || defined(sun) || defined(__sun)) #include #endif