diff options
author | Robin Gareus <robin@gareus.org> | 2018-09-21 19:03:33 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-09-21 19:03:33 +0200 |
commit | 497a3fbaa1ea089ec926a122fb833df320066efc (patch) | |
tree | 8e04b89be15f2fff246b1ffc673e6ddbcd19e926 /libs/gtkmm2ext | |
parent | df2a18ec1c7be3777db18f07769aa1677147c321 (diff) |
Fix --no-nls (2/5), prefer #if in libs
This is for consistency with system-wide gettext.h which is used
by some 3rd party libs. system-wide gettext uses `#if ENABLE_NLS`,
not #ifdef
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r-- | libs/gtkmm2ext/gettext.h | 2 | ||||
-rw-r--r-- | libs/gtkmm2ext/utils.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libs/gtkmm2ext/gettext.h b/libs/gtkmm2ext/gettext.h index 2645402e95..339c74ffe7 100644 --- a/libs/gtkmm2ext/gettext.h +++ b/libs/gtkmm2ext/gettext.h @@ -20,7 +20,7 @@ #define _LIBGETTEXT_H 1 /* NLS can be disabled through the configure --disable-nls option. */ -#ifdef ENABLE_NLS +#if ENABLE_NLS /* Get declarations of GNU message catalog functions. */ # include <libintl.h> diff --git a/libs/gtkmm2ext/utils.cc b/libs/gtkmm2ext/utils.cc index 147256b426..06cd0b82a9 100644 --- a/libs/gtkmm2ext/utils.cc +++ b/libs/gtkmm2ext/utils.cc @@ -44,7 +44,7 @@ using namespace std; void Gtkmm2ext::init (const char* localedir) { -#ifdef ENABLE_NLS +#if ENABLE_NLS (void) bindtextdomain(PACKAGE, localedir); (void) bind_textdomain_codeset (PACKAGE, "UTF-8"); #endif |