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:
Michael Reed 2015-05-30 01:06:19 -04:00
parent 7c2afbd9a6
commit b113754de8
3 changed files with 4 additions and 4 deletions

View File

@ -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)

View File

@ -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).
*/

View File

@ -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
{