diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2021-05-21 09:45:21 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-05-21 13:22:05 +0200 |
commit | 916f57f31d9b89e52797996bbd36674e14fc89bb (patch) | |
tree | 8ffa7e281fee48d30e942b359d90979230c0b366 /src | |
parent | badd231b824888db58aadae164d63b36c5aa423f (diff) | |
download | weechat-916f57f31d9b89e52797996bbd36674e14fc89bb.zip |
core: fix build error if ENABLE_NLS is OFF
wee-eval.c calls gettext directly, but gettext is not a function if
ENABLE_NLS is off. Fix by defining a gettext macro (that expands to its
first argument) if NLS support is disabled.
Diffstat (limited to 'src')
-rw-r--r-- | src/core/weechat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/weechat.h b/src/core/weechat.h index 50246984a..e47266c29 100644 --- a/src/core/weechat.h +++ b/src/core/weechat.h @@ -50,6 +50,7 @@ #define _(string) (string) #define NG_(single,plural,number) (plural) #define N_(string) (string) + #define gettext(string) (string) #endif /* !defined(_) */ |