From 1a38571c92cdafb54da907d9ef39245795a08f19 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sun, 5 Sep 2004 10:54:21 +0000 Subject: [PATCH] Patch for STLPort configs with no wide stream support. [SVN r24915] --- include/boost/config/stdlib/stlport.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/boost/config/stdlib/stlport.hpp b/include/boost/config/stdlib/stlport.hpp index 044a87d9..4843ea59 100644 --- a/include/boost/config/stdlib/stlport.hpp +++ b/include/boost/config/stdlib/stlport.hpp @@ -82,6 +82,19 @@ # define BOOST_NO_STD_ALLOCATOR #endif +// +// If STLport thinks there is no wchar_t at all, then we have to disable +// the support for the relevant specilazations of std:: templates. +// +#if !defined(_STLP_HAS_WCHAR_T) && !defined(_STLP_WCHAR_T_IS_USHORT) +# ifndef BOOST_NO_STD_WSTRING +# define BOOST_NO_STD_WSTRING +# endif +# ifndef BOOST_NO_STD_WSTREAMBUF +# define BOOST_NO_STD_WSTREAMBUF +# endif +#endif + // // We always have SGI style hash_set, hash_map, and slist: //