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