aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/eval.c5
-rw-r--r--src/nvim/ex_cmds2.c2
-rw-r--r--src/nvim/main.c2
-rw-r--r--src/nvim/message.c5
4 files changed, 4 insertions, 10 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 87261d4368..db57f73a1f 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -12,6 +12,7 @@
#include <string.h>
#include <stdlib.h>
+#include <math.h>
#include "nvim/vim.h"
#include "nvim/eval.h"
#include "nvim/buffer.h"
@@ -69,10 +70,6 @@
#include "nvim/os/time.h"
#include "nvim/os/channel.h"
-#if defined(FEAT_FLOAT)
-# include <math.h>
-#endif
-
#define DICT_MAXNEST 100 /* maximum nesting of lists and dicts */
#define DO_NOT_FREE_CNT 99999 /* refcount for dict or list that should not
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c
index a83b5b3578..0f5cb6b9e2 100644
--- a/src/nvim/ex_cmds2.c
+++ b/src/nvim/ex_cmds2.c
@@ -3394,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
diff --git a/src/nvim/main.c b/src/nvim/main.c
index 91e879cbe0..ffb83ae7d8 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -880,7 +880,7 @@ static void init_locale(void)
{
setlocale(LC_ALL, "");
-# 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
diff --git a/src/nvim/message.c b/src/nvim/message.c
index be23ac0450..44fbdb6091 100644
--- a/src/nvim/message.c
+++ b/src/nvim/message.c
@@ -13,6 +13,7 @@
#define MESSAGE_FILE /* don't include prototype for smsg() */
#include <string.h>
+#include <math.h>
#include "nvim/vim.h"
#include "nvim/message.h"
@@ -37,10 +38,6 @@
#include "nvim/os/os.h"
#include "nvim/os/event.h"
-#if defined(FEAT_FLOAT)
-# include <math.h>
-#endif
-
static int other_sourcing_name(void);
static char_u *get_emsg_source(void);
static char_u *get_emsg_lnum(void);