mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
quick fix to it not building with gettext on my visual studio environment
This commit is contained in:
parent
1de45cc8a7
commit
df27b85432
@ -2,8 +2,6 @@
|
|||||||
#include <libintl.h>
|
#include <libintl.h>
|
||||||
#else
|
#else
|
||||||
#define gettext(String) String
|
#define gettext(String) String
|
||||||
#define bindtextdomain(domain, dir) /* */
|
|
||||||
#define textdomain(domain) /* */
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _(String) gettext(String)
|
#define _(String) gettext(String)
|
||||||
|
@ -1161,9 +1161,11 @@ int main(int argc, char *argv[])
|
|||||||
// Create user data directory
|
// Create user data directory
|
||||||
fs::CreateDir(porting::path_userdata);
|
fs::CreateDir(porting::path_userdata);
|
||||||
|
|
||||||
|
#ifdef USE_GETTEXT
|
||||||
setlocale(LC_MESSAGES, "");
|
setlocale(LC_MESSAGES, "");
|
||||||
bindtextdomain("minetest", (porting::path_userdata+"/locale").c_str());
|
bindtextdomain("minetest", (porting::path_userdata+"/locale").c_str());
|
||||||
textdomain("minetest");
|
textdomain("minetest");
|
||||||
|
#endif
|
||||||
|
|
||||||
// Initialize debug streams
|
// Initialize debug streams
|
||||||
#ifdef RUN_IN_PLACE
|
#ifdef RUN_IN_PLACE
|
||||||
|
Loading…
Reference in New Issue
Block a user