mirror of
https://github.com/neovim/neovim.git
synced 2025-10-18 15:51:50 +00:00

Assuming `inline` is there for a reason, so it is kept and function was moved to typval.h and not to typval.c which does not have problems with #including message.h.
22 lines
458 B
C
22 lines
458 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
|
|
#else
|
|
# define _(x) ((char *)(x))
|
|
# define N_(x) x
|
|
# define bindtextdomain(x, y) // empty
|
|
# define bind_textdomain_codeset(x, y) // empty
|
|
# define textdomain(x) // empty
|
|
#endif
|
|
|
|
#endif // NVIM_GETTEXT_H
|