From 0b4655307247e316f5bd769fa85a5027e1714c68 Mon Sep 17 00:00:00 2001 From: Giovanni Bajo Date: Sun, 25 Jan 2004 16:28:02 +0000 Subject: [PATCH] Add support to detect if STLport was configured to not use wchar_t [SVN r21920] --- include/boost/config/stdlib/stlport.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/boost/config/stdlib/stlport.hpp b/include/boost/config/stdlib/stlport.hpp index 94d705bb..0410c922 100644 --- a/include/boost/config/stdlib/stlport.hpp +++ b/include/boost/config/stdlib/stlport.hpp @@ -149,6 +149,16 @@ namespace std{ using _STLP_VENDOR_CSTD::strcmp; using _STLP_VENDOR_CSTD::strcpy; # define BOOST_NO_CWCTYPE #endif +// +// If STLport for some reason was configured so that it thinks that wchar_t +// is not an intrinsic type, then we have to disable the support for it as +// well (we would be missing required specializations otherwise). +// +#if !defined( _STLP_HAS_WCHAR_T) || defined(_STLP_WCHAR_T_IS_USHORT) +# undef BOOST_NO_INTRINSIC_WCHAR_T +# define BOOST_NO_INTRINSIC_WCHAR_T +#endif + // // Borland ships a version of STLport with C++ Builder 6 that lacks // hashtables and the like: