aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2014-05-28 13:09:50 -0400
committerJustin M. Keyes <justinkz@gmail.com>2014-05-28 13:09:59 -0400
commit3972f6cde741a03eb04a413f61983f2d768127c2 (patch)
tree42bedb0a0915fd82e809c6c23b812518ebd872ac /src/nvim/ex_cmds2.c
parent3dddceedceebb73b93d399f2c56b0f1b5394c645 (diff)
parent6fc28397950f367f4b9e5b56b9d135dde2410e76 (diff)
downloadrneovim-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.c9
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);