diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-07-24 13:58:51 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2011-07-24 16:52:59 +0200 |
commit | e034f8a2a372279edfc5a6c69dc14fb31c9a7685 (patch) | |
tree | b8bf1e95011a901b0e20e1cb283b7d0ed98a9030 /src/config.h | |
parent | 47381bde3b4d7a9ee9780786c9a993f2b63a488a (diff) | |
download | minetest-e034f8a2a372279edfc5a6c69dc14fb31c9a7685.tar.gz minetest-e034f8a2a372279edfc5a6c69dc14fb31c9a7685.tar.bz2 minetest-e034f8a2a372279edfc5a6c69dc14fb31c9a7685.zip |
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.
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config.h b/src/config.h index eb1d1a9aa..54b89a060 100644 --- a/src/config.h +++ b/src/config.h @@ -23,13 +23,13 @@ #else #define RUN_IN_PLACE_BOOLSTRING "0" #endif - #ifdef USE_GETTEXT - #define USE_GETTEXT_BOOLSTRING "ON" + #if USE_GETTEXT + #define USE_GETTEXT_BOOLSTRING "1" #else - #define USE_GETTEXT_BOOLSTRING "OFF" + #define USE_GETTEXT_BOOLSTRING "0" #endif + #define BUILD_INFO "NON-CMAKE RUN_IN_PLACE="RUN_IN_PLACE_BOOLSTRING" USE_GETTEXT="USE_GETTEXT_BOOLSTRING" BUILD_TYPE="BUILD_TYPE #endif - #endif |