X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-common%2Fi18n.c;h=509abbe787db2982ec2e76516d49eef88c381b2e;hb=7eb9e3cc40ef470ba5b484f7d29160bfdc254443;hp=51c93e4e6bbfa65ef4eb5f22783ef610c587366a;hpb=908e491f7d55209acfbb2595ab1ef5b24502d641;p=catta 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 */ }