diff options
Diffstat (limited to 'src/UniConversion.cxx')
-rw-r--r-- | src/UniConversion.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/UniConversion.cxx b/src/UniConversion.cxx index c3f960c62..15cad6382 100644 --- a/src/UniConversion.cxx +++ b/src/UniConversion.cxx @@ -52,9 +52,6 @@ unsigned int UCS2Length(const char *s, unsigned int len) { } unsigned int UCS2FromUTF8(const char *s, unsigned int len, wchar_t *tbuf, unsigned int tlen) { -#ifdef USE_API - return ::MultiByteToWideChar(CP_UTF8, 0, s, len, tbuf, tlen); -#else unsigned int ui=0; const unsigned char *us = reinterpret_cast<const unsigned char *>(s); unsigned int i=0; @@ -76,5 +73,4 @@ unsigned int UCS2FromUTF8(const char *s, unsigned int len, wchar_t *tbuf, unsign ui++; } return ui; -#endif } |