From 2dc2b800f91c5b83d4f40d3897227d43e4d124fb Mon Sep 17 00:00:00 2001 From: Jens Maurer Date: Sat, 22 Sep 2001 16:24:17 +0000 Subject: [PATCH] _STLPORT_VERSION also indicates STLport if no native wide functions, assume and are effectively unavailable [SVN r11209] --- include/boost/config/stdlib/stlport.hpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/boost/config/stdlib/stlport.hpp b/include/boost/config/stdlib/stlport.hpp index 2e674fa5..e42885cb 100644 --- a/include/boost/config/stdlib/stlport.hpp +++ b/include/boost/config/stdlib/stlport.hpp @@ -7,9 +7,9 @@ // STLPort standard library config: -#if !defined(__SGI_STL_PORT) +#if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) # include -# if !defined(__SGI_STL_PORT) +# if !defined(__SGI_STL_PORT) && !defined(_STLPORT_VERSION) # error "This is not STLPort!" # endif #endif @@ -91,6 +91,14 @@ # define BOOST_HAS_STLP_USE_FACET #endif +// +// If STLport thinks there are no wide functions, etc. is not working. +// +#if defined(_STLP_NO_NATIVE_WIDE_FUNCTIONS) +# define BOOST_NO_CWCHAR +# define BOOST_NO_CWTYPE +#endif + #define BOOST_STDLIB "STLPort standard library version " BOOST_STRINGIZE(__SGI_STL_PORT)