diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-05-28 13:09:50 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-05-28 13:09:59 -0400 |
commit | 3972f6cde741a03eb04a413f61983f2d768127c2 (patch) | |
tree | 42bedb0a0915fd82e809c6c23b812518ebd872ac /src/nvim/ex_cmds2.c | |
parent | 3dddceedceebb73b93d399f2c56b0f1b5394c645 (diff) | |
parent | 6fc28397950f367f4b9e5b56b9d135dde2410e76 (diff) | |
download | rneovim-3972f6cde741a03eb04a413f61983f2d768127c2.tar.gz rneovim-3972f6cde741a03eb04a413f61983f2d768127c2.tar.bz2 rneovim-3972f6cde741a03eb04a413f61983f2d768127c2.zip |
Merge #500 'Remove/simplify #ifdefs on default features'
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index b4155b417d..c37998e26e 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -3228,8 +3228,7 @@ void ex_checktime(exarg_T *eap) no_check_timestamps = save_no_check_timestamps; } -#if (defined(HAVE_LOCALE_H) || defined(X_LOCALE)) \ - && (defined(FEAT_EVAL) || defined(FEAT_MULTI_LANG)) +#if defined(HAVE_LOCALE_H) || defined(X_LOCALE) # define HAVE_GET_LOCALE_VAL static char *get_locale_val(int what); @@ -3395,7 +3394,7 @@ void ex_language(exarg_T *eap) #endif { loc = setlocale(what, (char *)name); -#if defined(FEAT_FLOAT) && defined(LC_NUMERIC) +#ifdef LC_NUMERIC /* Make sure strtod() uses a decimal point, not a comma. */ setlocale(LC_NUMERIC, "C"); #endif @@ -3415,9 +3414,7 @@ void ex_language(exarg_T *eap) if (what != LC_TIME) { /* Tell gettext() what to translate to. It apparently doesn't - * use the currently effective locale. Also do this when - * FEAT_GETTEXT isn't defined, so that shell commands use this - * value. */ + * use the currently effective locale. */ if (what == LC_ALL) { vim_setenv((char_u *)"LANG", name); |