aboutsummaryrefslogtreecommitdiff
path: root/src/vim.h
diff options
context:
space:
mode:
authoraph <a.hewson@gmail.com>2014-01-31 18:10:18 +0000
committerThiago de Arruda <tpadilha84@gmail.com>2014-02-01 10:34:04 -0300
commit2d00ead2e57653b771354a564f9a760c2ce0d18e (patch)
treec205d7000191c5f7f2f1a439bc5ac67524c4fc00 /src/vim.h
parent72cf89bce8e4230dbc161dc5606f48ef9884ba70 (diff)
downloadrneovim-2d00ead2e57653b771354a564f9a760c2ce0d18e.tar.gz
rneovim-2d00ead2e57653b771354a564f9a760c2ce0d18e.tar.bz2
rneovim-2d00ead2e57653b771354a564f9a760c2ce0d18e.zip
Fix build on OSX/Archlinux and add README
- remove SELinux dependency for now - OSX: find libintl.h - OSX: fix compile errors - OSX: use hack around gettext nonsense - fix gettext on ubuntu - work around Arch's lack of -ltermcap - add README.md
Diffstat (limited to 'src/vim.h')
-rw-r--r--src/vim.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/vim.h b/src/vim.h
index 3095dbf541..93f66cf438 100644
--- a/src/vim.h
+++ b/src/vim.h
@@ -336,22 +336,22 @@ typedef unsigned long u8char_T; /* long should be 32 bits or more */
# define USE_IM_CONTROL
#endif
-/*
- * For dynamically loaded gettext library. Currently, only for Win32.
- */
-
-
-/*
- * The _() stuff is for using gettext(). It is a no-op when libintl.h is not
- * found or the +multilang feature is disabled.
- */
+#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)
+# define N_(x) gettext_noop(x)
# else
-# define N_(x) x
+# 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
/*
* flags for update_screen()