mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Passing by: Remove X_LOCALE refs
We don't link to any X11 libs, so this is most likely unneeded.
This commit is contained in:
parent
7c2afbd9a6
commit
b113754de8
@ -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)
|
||||
|
@ -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).
|
||||
*/
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user