]> jfr.im git - irc/weechat/weechat.git/commitdiff
core: fix build error if ENABLE_NLS is OFF
authorGiuseppe Bilotta <redacted>
Fri, 21 May 2021 07:45:21 +0000 (09:45 +0200)
committerSébastien Helleu <redacted>
Fri, 21 May 2021 11:22:05 +0000 (13:22 +0200)
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

index 50246984a6cdfee8c8bc7e4f02a442755b0cadbb..e47266c2931fbd109b2b1d285ee3cb032c6281c5 100644 (file)
@@ -50,6 +50,7 @@
     #define _(string) (string)
     #define NG_(single,plural,number) (plural)
     #define N_(string) (string)
+    #define gettext(string) (string)
 #endif /* !defined(_) */