summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2021-05-21 09:45:21 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-05-21 13:22:05 +0200
commit916f57f31d9b89e52797996bbd36674e14fc89bb (patch)
tree8ffa7e281fee48d30e942b359d90979230c0b366 /src
parentbadd231b824888db58aadae164d63b36c5aa423f (diff)
downloadweechat-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.h1
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(_) */