From: Sven M. Hallberg Date: Mon, 18 Aug 2014 14:51:16 +0000 (+0200) Subject: don't require GETTEXT_PACKAGE unless compiling with ENABLE_NLS X-Git-Url: http://git.meshlink.io/?p=catta;a=commitdiff_plain;h=a43cea030444a079fcb50d6bd2d6f40f6093da8a don't require GETTEXT_PACKAGE unless compiling with ENABLE_NLS --- diff --git a/avahi-common/i18n.h b/avahi-common/i18n.h index 2a613e5..f46931d 100644 --- a/avahi-common/i18n.h +++ b/avahi-common/i18n.h @@ -20,12 +20,12 @@ USA. ***/ +#ifdef ENABLE_NLS + #if !defined(GETTEXT_PACKAGE) #error "Something is very wrong here, config.h needs to be included first" #endif -#ifdef ENABLE_NLS - #include #define _(String) dgettext(GETTEXT_PACKAGE, String)