allow to use iostream and sstream without wchar support, as pointed by Scott
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7137 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
cc8cb39465
commit
5702970de9
7 changed files with 67 additions and 19 deletions
|
|
@ -1,8 +1,22 @@
|
|||
/*
|
||||
For wchar support, you need to include the wchar.i file
|
||||
before this file, ie:
|
||||
|
||||
%include <wchar.i>
|
||||
%include <std_sstream.i>
|
||||
|
||||
or equivalently, just include
|
||||
|
||||
%include <std_wsstream.i>
|
||||
*/
|
||||
|
||||
%include <std_alloc.i>
|
||||
%include <std_basic_string.i>
|
||||
%include <std_string.i>
|
||||
%include <std_ios.i>
|
||||
#if defined(SWIG_WCHAR)
|
||||
%include <std_wstring.i>
|
||||
#endif
|
||||
%include <std_streambuf.i>
|
||||
%include <std_iostream.i>
|
||||
|
||||
|
|
@ -173,7 +187,9 @@ namespace std {
|
|||
%template(stringstream) basic_stringstream<char>;
|
||||
|
||||
|
||||
#if defined(SWIG_WCHAR)
|
||||
%template(wistringstream) basic_istringstream<wchar_t>;
|
||||
%template(wostringstream) basic_ostringstream<wchar_t>;
|
||||
%template(wstringstream) basic_stringstream<wchar_t>;
|
||||
#endif
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue