mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-30 04:40:53 +00:00
Fixed: In MBCS mode, convert to std::string
This commit is contained in:
parent
9482f45375
commit
6f5b64a669
1 changed files with 1 additions and 1 deletions
|
@ -291,7 +291,7 @@ inline sint nlstricmp(const char *lhs, const std::string &rhs) { return stricmp(
|
||||||
#define tStrToUtf8(str) (ucstring((ucchar*)(LPCWSTR)str).toUtf8())
|
#define tStrToUtf8(str) (ucstring((ucchar*)(LPCWSTR)str).toUtf8())
|
||||||
#define utf8ToTStr(str) ((wchar_t*)ucstring::makeFromUtf8(str).c_str())
|
#define utf8ToTStr(str) ((wchar_t*)ucstring::makeFromUtf8(str).c_str())
|
||||||
#else
|
#else
|
||||||
#define tStrToUtf8(str) ((LPCSTR)str)
|
#define tStrToUtf8(str) (std::string((LPCSTR)str))
|
||||||
#define utf8ToTStr(str) (str.c_str())
|
#define utf8ToTStr(str) (str.c_str())
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue