mirror of
https://github.com/boostorg/detail.git
synced 2025-07-29 20:07:15 +02:00
fix to accomodate non-standard libraries
[SVN r24485]
This commit is contained in:
@ -51,11 +51,9 @@
|
||||
#include <cstddef> // size_t
|
||||
|
||||
namespace std{
|
||||
#if defined(__COMO__)
|
||||
#if defined(__LIBCOMO__)
|
||||
using ::mbstate_t;
|
||||
#elif defined(BOOST_MSVC)
|
||||
using ::mbstate_t;
|
||||
#elif defined(BOOST_INTEL)
|
||||
#elif defined(BOOST_DINKUMWARE_STDLIB)
|
||||
using ::mbstate_t;
|
||||
#elif defined(BOOST_NO_STDC_NAMESPACE)
|
||||
using ::codecvt;
|
||||
@ -63,6 +61,17 @@ namespace std{
|
||||
#endif
|
||||
} // namespace std
|
||||
|
||||
|
||||
#if !defined(__MSL_CPP__) \
|
||||
&& !defined(__LIBCOMO__)
|
||||
#define BOOST_CODECVT_DO_LENGTH_CONST const
|
||||
#else
|
||||
#define BOOST_CODECVT_DO_LENGTH_CONST
|
||||
#endif
|
||||
|
||||
#include <boost/integer_traits.hpp>
|
||||
|
||||
|
||||
// maximum lenght of a multibyte string
|
||||
#define MB_LENGTH_MAX 8
|
||||
|
||||
@ -131,7 +140,7 @@ protected:
|
||||
// How many char objects can I process to get <= max_limit
|
||||
// wchar_t objects?
|
||||
virtual int do_length(
|
||||
const std::mbstate_t &,
|
||||
BOOST_CODECVT_DO_LENGTH_CONST std::mbstate_t &,
|
||||
const char * from,
|
||||
const char * from_end,
|
||||
std::size_t max_limit
|
||||
@ -202,3 +211,4 @@ struct utf8_codecvt_facet<char, char>
|
||||
#endif
|
||||
|
||||
#endif // BOOST_UTF8_CODECVT_FACET_HPP
|
||||
|
||||
|
Reference in New Issue
Block a user