aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/gettext.h
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-08-21 00:20:01 +0300
committerZyX <kp-pav@yandex.ru>2017-03-29 10:07:43 +0300
commit5cdf7177ec71e4b9b3295ead93bedf7ff226a2b2 (patch)
treec8ad8b61d42f667790cc3edae529e762e0e2ec13 /src/nvim/gettext.h
parent2dcfc439b2ec2be4d830826061e89860977516be (diff)
downloadrneovim-5cdf7177ec71e4b9b3295ead93bedf7ff226a2b2.tar.gz
rneovim-5cdf7177ec71e4b9b3295ead93bedf7ff226a2b2.tar.bz2
rneovim-5cdf7177ec71e4b9b3295ead93bedf7ff226a2b2.zip
eval: Move get_float_arg to typval.h
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.
Diffstat (limited to 'src/nvim/gettext.h')
-rw-r--r--src/nvim/gettext.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/nvim/gettext.h b/src/nvim/gettext.h
new file mode 100644
index 0000000000..aa0e97233e
--- /dev/null
+++ b/src/nvim/gettext.h
@@ -0,0 +1,21 @@
+#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