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

updated cmakerules to autodetect if gettext can be used

fixed error if gettext is disabled
This commit is contained in:
Constantin Wenger 2011-07-23 22:36:11 +02:00
parent 4771b4951d
commit f6d9bcc9bb
4 changed files with 26 additions and 18 deletions

View file

@ -1,3 +1,4 @@
#ifdef GETTEXT_FOUND
#ifdef USE_GETTEXT
#include <libintl.h>
#else
@ -5,6 +6,11 @@
#define bindtextdomain(domain, dir) /* */
#define textdomain(domain) /* */
#endif
#else
#define gettext(String) String
#define bindtextdomain(domain, dir) /* */
#define textdomain(domain) /* */
#endif
#define _(String) gettext(String)
#define gettext_noop(String) String