From a71f428fe5b74a8c44e59f888cbeaa902700d967 Mon Sep 17 00:00:00 2001 From: caro Date: Sun, 29 May 2011 18:13:52 +0000 Subject: [PATCH] fix compilation when gettext is unavailable git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@59790 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_priv.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_priv.h b/src/lib/elm_priv.h index 443ae5b..af2d89e 100644 --- a/src/lib/elm_priv.h +++ b/src/lib/elm_priv.h @@ -26,7 +26,14 @@ #define INF(...) EINA_LOG_DOM_INFO(_elm_log_dom, __VA_ARGS__) #define DBG(...) EINA_LOG_DOM_DBG (_elm_log_dom, __VA_ARGS__) -#define E_(string) dgettext(PACKAGE, string) +#ifdef ENABLE_NLS +# include +# define E_(string) dgettext(PACKAGE, string) +#else +# define bindtextdomain(domain,dir) +# define E_(string) (string) +#endif + typedef struct _Elm_Config Elm_Config; typedef struct _Elm_Module Elm_Module; -- 2.7.4