aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds2.c
diff options
context:
space:
mode:
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);