1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

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.
This commit is contained in:
Giuseppe Bilotta
2021-05-21 09:45:21 +02:00
committed by Sébastien Helleu
parent badd231b82
commit 916f57f31d
+1
View File
@@ -50,6 +50,7 @@
#define _(string) (string)
#define NG_(single,plural,number) (plural)
#define N_(string) (string)
#define gettext(string) (string)
#endif /* !defined(_) */