From 916f57f31d9b89e52797996bbd36674e14fc89bb Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Fri, 21 May 2021 09:45:21 +0200 Subject: 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. --- src/core/weechat.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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(_) */ -- cgit v1.2.3