From: Sven M. Hallberg Date: Mon, 18 Aug 2014 14:52:19 +0000 (+0200) Subject: make avahi_init_i18n a no-op when compiling without NLS X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=6c199ed314634143efc89c7e40f170528036c497;p=catta make avahi_init_i18n a no-op when compiling without NLS --- diff --git a/avahi-common/i18n.c b/avahi-common/i18n.c index 51c93e4..509abbe 100644 --- a/avahi-common/i18n.c +++ b/avahi-common/i18n.c @@ -24,9 +24,11 @@ #include "i18n.h" void avahi_init_i18n(void) { +#ifdef ENABLE_NLS /* Not really thread safe, but this doesn't matter much since * bindtextdomain is supposed to be idempotent anyway. */ + /* FIXME: but is bindtextdomain reentrant!? */ static int done = 0; @@ -35,4 +37,6 @@ void avahi_init_i18n(void) { bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); done = 1; } + +#endif /* ENABLE_NLS */ }