diff options
author | Michael Reed <m.reed@mykolab.com> | 2015-05-30 01:06:19 -0400 |
---|---|---|
committer | Michael Reed <m.reed@mykolab.com> | 2015-05-30 17:09:27 -0400 |
commit | b113754de8815fd59e1b42f8eae239b0a31c43ee (patch) | |
tree | 8ab2ed80eca912d4656049bc0da00d7aa2da7e0c | |
parent | 7c2afbd9a69c5aa2d148251f1a7e5773fb0f2ebb (diff) | |
download | rneovim-b113754de8815fd59e1b42f8eae239b0a31c43ee.tar.gz rneovim-b113754de8815fd59e1b42f8eae239b0a31c43ee.tar.bz2 rneovim-b113754de8815fd59e1b42f8eae239b0a31c43ee.zip |
Passing by: Remove X_LOCALE refs
We don't link to any X11 libs, so this is most likely unneeded.
-rw-r--r-- | src/nvim/ex_cmds2.c | 2 | ||||
-rw-r--r-- | src/nvim/main.c | 4 | ||||
-rw-r--r-- | src/nvim/mbyte.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 5c1f487d5e..e7029b8762 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -2987,7 +2987,7 @@ void ex_checktime(exarg_T *eap) no_check_timestamps = save_no_check_timestamps; } -#if defined(HAVE_LOCALE_H) || defined(X_LOCALE) +#if defined(HAVE_LOCALE_H) # define HAVE_GET_LOCALE_VAL static char *get_locale_val(int what) diff --git a/src/nvim/main.c b/src/nvim/main.c index d917d4a9b8..e1bb2d0b66 100644 --- a/src/nvim/main.c +++ b/src/nvim/main.c @@ -146,7 +146,7 @@ void early_init(void) // Init the table of Normal mode commands. init_normal_cmds(); -#if defined(HAVE_LOCALE_H) || defined(X_LOCALE) +#if defined(HAVE_LOCALE_H) // Setup to use the current locale (for ctype() and many other things). // NOTE: Translated messages with encodings other than latin1 will not // work until set_init_1() has been called! @@ -809,7 +809,7 @@ static int get_number_arg(const char *p, int *idx, int def) return def; } -#if defined(HAVE_LOCALE_H) || defined(X_LOCALE) +#if defined(HAVE_LOCALE_H) /* * Setup to use the current locale (for ctype() and many other things). */ diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c index 368ae8e773..c8ebcefe0e 100644 --- a/src/nvim/mbyte.c +++ b/src/nvim/mbyte.c @@ -3406,7 +3406,7 @@ char_u * enc_locale(void) if (!(s = nl_langinfo(CODESET)) || *s == NUL) # endif { -# if defined(HAVE_LOCALE_H) || defined(X_LOCALE) +# if defined(HAVE_LOCALE_H) if (!(s = setlocale(LC_CTYPE, NULL)) || *s == NUL) # endif { |