diff options
author | NIIBE Yutaka <[email protected]> | 2015-07-10 00:21:32 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2015-07-10 00:21:32 +0000 |
commit | b3286af36d452fc801be573a057b0838d53a2edd (patch) | |
tree | 794b8d6c854797b246808d336dc189e8903292d2 | |
parent | scd: Remove unused files. (diff) | |
download | gnupg-b3286af36d452fc801be573a057b0838d53a2edd.tar.gz gnupg-b3286af36d452fc801be573a057b0838d53a2edd.zip |
agent: Support non-NLS build.
* agent/agent.h: Use ENABLE_NLS and define L_() macro.
--
GnuPG-bug-id: 2032
This is a fix for e76d4c05b24211f3981ab69cddb3fccc17d21e0e.
-rw-r--r-- | agent/agent.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/agent/agent.h b/agent/agent.h index 2948bff76..5a0925496 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); \ } +#else +#define L_(a) (a) +#endif /*-- gpg-agent.c --*/ |