diff --git a/include/boost/lexical_cast.hpp b/include/boost/lexical_cast.hpp index b376363..491774a 100644 --- a/include/boost/lexical_cast.hpp +++ b/include/boost/lexical_cast.hpp @@ -955,7 +955,7 @@ namespace boost BOOST_STATIC_CONSTANT(bool, value = false); }; -#ifndef DISABLE_WIDE_CHAR_SUPPORT +#if !defined(DISABLE_WIDE_CHAR_SUPPORT) && !defined(BOOST_NO_INTRINSIC_WCHAR_T) template<> struct lcast_streambuf_for_target { diff --git a/lexical_cast_test.cpp b/lexical_cast_test.cpp index 2f3dd45..052a49c 100644 --- a/lexical_cast_test.cpp +++ b/lexical_cast_test.cpp @@ -498,7 +498,7 @@ void test_conversion_from_integral_for_locale() { test_conversion_from_integral_to_integral(); test_conversion_from_integral_to_string('0'); -#ifndef DISABLE_WIDE_CHAR_SUPPORT +#if !defined(DISABLE_WIDE_CHAR_SUPPORT) && !defined(BOOST_NO_INTRINSIC_WCHAR_T) test_conversion_from_integral_to_string(L'0'); #endif }