mirror of
https://github.com/neovim/neovim.git
synced 2026-03-06 00:57:15 +00:00
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case.
1c46544412
24 lines
557 B
C
24 lines
557 B
C
#ifndef NVIM_GETTEXT_H
|
|
#define NVIM_GETTEXT_H
|
|
|
|
#ifdef HAVE_WORKING_LIBINTL
|
|
# include <libintl.h>
|
|
# define _(x) gettext((char *)(x))
|
|
// XXX do we actually need this?
|
|
# ifdef gettext_noop
|
|
# define N_(x) gettext_noop(x)
|
|
# else
|
|
# define N_(x) x
|
|
# endif
|
|
# define NGETTEXT(x, xs, n) ngettext(x, xs, n)
|
|
#else
|
|
# define _(x) ((char *)(x))
|
|
# define N_(x) x
|
|
# define NGETTEXT(x, xs, n) ((n) == 1 ? (x) : (xs))
|
|
# define bindtextdomain(x, y) // empty
|
|
# define bind_textdomain_codeset(x, y) // empty
|
|
# define textdomain(x) // empty
|
|
#endif
|
|
|
|
#endif // NVIM_GETTEXT_H
|