1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Make gettext optional

This commit is contained in:
Giuseppe Bilotta 2011-07-21 07:53:13 +02:00
parent 89b8b792c1
commit 89af509d10
2 changed files with 48 additions and 27 deletions

View file

@ -1,9 +1,16 @@
#ifdef USE_GETTEXT
#include <libintl.h>
#else
#define gettext(String) String
#define bindtextdomain(domain, dir) /* */
#define textdomain(domain) /* */
#endif
#define _(String) gettext(String)
#define gettext_noop(String) String
#define N_(String) gettext_noop (String)
inline wchar_t* chartowchar_t(char *str)
inline wchar_t* chartowchar_t(const char *str)
{
size_t l = strlen(str)+1;
wchar_t* nstr = new wchar_t[l];