From a7f238dfd8043cf92c0f72f2dc2f725bb1f4e675 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: svn+ssh://svn.enlightenment.org/var/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