agent: Support non-NLS build.

NIIBE Yutaka gniibe at
Fri Jul 10 02:30:00 CEST 2015


This is a fix for an issue:
I'm going to push this as it's obvious.

    * agent/agent.h: Use ENABLE_NLS and define L_() macro.

diff --git a/agent/agent.h b/agent/agent.h
index 2948bff..5a09254 100644
--- a/agent/agent.h
+++ b/agent/agent.h
@@ -300,6 +300,7 @@ typedef int (*lookup_ttl_t)(const char *hexgrip);
    and uses that to translate a string according to the locale set for
    the connection.  The macro LunderscoreIMPL is used by i18n to
    actually define the inline function when needed.  */
+#ifdef ENABLE_NLS
 #define L_(a) agent_Lunderscore (ctrl, (a))
 #define LunderscorePROTO                                            \
   static inline const char *agent_Lunderscore (ctrl_t ctrl,         \
@@ -312,6 +313,9 @@ typedef int (*lookup_ttl_t)(const char *hexgrip);
     return ctrl? i18n_localegettext (ctrl->lc_messages, string) \
       /*     */: gettext (string);                              \
+#define L_(a) (a)

 /*-- gpg-agent.c --*/

More information about the Gnupg-devel mailing list