1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

Fix formspec label issues in win builds (MSVC)

This commit is contained in:
BlockMen
2013-08-03 17:57:51 +02:00
committed by PilzAdam
parent 2af5864534
commit be4670fecf
2 changed files with 39 additions and 61 deletions

View File

@@ -83,5 +83,12 @@ inline void changeCtype(const char *l)
else
infostream<<"locale has been set to:"<<ret<<std::endl;*/
}
inline std::wstring wstrgettext(std::string text) {
wchar_t* wlabel = wgettext(text.c_str());
std::wstring out = (std::wstring)wlabel;
delete[] wlabel;
return out;
}
#define GETTEXT_HEADER
#endif