[ruby] fix support for std::wstring.

This commit is contained in:
Takashi Tamura 2017-02-18 16:27:23 +09:00
commit 904bc2ad52
2 changed files with 39 additions and 44 deletions

View file

@ -1,3 +1,17 @@
%{
#ifdef __cplusplus
extern "C" {
#endif
#ifdef HAVE_RUBY_ENCODING_H
#include "ruby/encoding.h"
#endif
#ifdef __cplusplus
}
#endif
%}
%include <rubywstrings.swg>
%include <typemaps/std_wstring.swg>