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

Sanitize GETTEXT usage macros

Now the user-level option is called ENABLE_GETTEXT, and USE_GETTEXT is
only set to true if gettext was enabled and found. This simplifies all
check to USE_GETTEXT only rather than the double checks for it being
enabled and found.
This commit is contained in:
Giuseppe Bilotta 2011-07-24 13:58:51 +02:00
parent 47381bde3b
commit e034f8a2a3
3 changed files with 20 additions and 15 deletions

View file

@ -1,4 +1,4 @@
#if defined(GETTEXT_FOUND) && defined(USE_GETTEXT)
#if USE_GETTEXT
#include <libintl.h>
#else
#define gettext(String) String