fix compilation when gettext is unavailable
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 29 May 2011 18:13:52 +0000 (18:13 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 29 May 2011 18:13:52 +0000 (18:13 +0000)
git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@59790 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/elm_priv.h

index 443ae5b..af2d89e 100644 (file)
 #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 <libintl.h>
+# 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;