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:
committed by
Sébastien Helleu
parent
badd231b82
commit
916f57f31d
@@ -50,6 +50,7 @@
|
||||
#define _(string) (string)
|
||||
#define NG_(single,plural,number) (plural)
|
||||
#define N_(string) (string)
|
||||
#define gettext(string) (string)
|
||||
#endif /* !defined(_) */
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user