mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-06 00:10:59 +00:00
Fix compilation for MSVC.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21514 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4a35906da7
commit
3a1290815e
@ -30,10 +30,21 @@ namespace lyx { typedef boost::uint32_t char_type; }
|
||||
|
||||
#include<iosfwd>
|
||||
|
||||
#ifdef _MSC_VER
|
||||
namespace std {
|
||||
template<typename Char, typename Traits, typename Alloc> class basic_string;
|
||||
typedef basic_string<char, char_traits<char>, allocator<char> > string;
|
||||
}
|
||||
#endif
|
||||
|
||||
namespace lyx {
|
||||
|
||||
/// String type for storing the main text in UCS4 encoding
|
||||
#ifdef _MSC_VER
|
||||
typedef std::basic_string<char_type, std::char_traits<char_type>, std::allocator<char_type> > docstring;
|
||||
#else
|
||||
typedef std::basic_string<char_type> docstring;
|
||||
#endif
|
||||
|
||||
/// Base class for UCS4 input streams
|
||||
typedef std::basic_istream<char_type> idocstream;
|
||||
|
Loading…
Reference in New Issue
Block a user