mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 17:24:08 +00:00
17 lines
240 B
C++
17 lines
240 B
C++
|
#ifdef __WIN32
|
||
|
|
||
|
#include "wstring.hh"
|
||
|
#include "iconv.hh"
|
||
|
#include <wchar.h>
|
||
|
|
||
|
namespace gd
|
||
|
{
|
||
|
wstring __nativeToWs( wchar_t const * str )
|
||
|
{
|
||
|
return Iconv::toWstring( "WCHAR_T", str, wcslen( str ) * sizeof( wchar_t ) );
|
||
|
}
|
||
|
}
|
||
|
|
||
|
#endif
|
||
|
|