aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Orth <ju.orth@gmail.com>2014-03-15 01:57:47 +0100
committerThiago de Arruda <tpadilha84@gmail.com>2014-03-31 21:24:59 -0300
commit22a1a26cadc07b843bd21c575dcccb7bd8bf5189 (patch)
treeb9540c3decf9f9125ccfa2e62e177931655b2203
parentb1ea283c597632d2ddf5b6b7c802d3d5a1aab99f (diff)
downloadrneovim-22a1a26cadc07b843bd21c575dcccb7bd8bf5189.tar.gz
rneovim-22a1a26cadc07b843bd21c575dcccb7bd8bf5189.tar.bz2
rneovim-22a1a26cadc07b843bd21c575dcccb7bd8bf5189.zip
remove HAVE_MATH_H
-rw-r--r--config/config.h.in1
-rw-r--r--src/eval.c2
-rw-r--r--src/ex_cmds2.c4
-rw-r--r--src/message.c2
4 files changed, 3 insertions, 6 deletions
diff --git a/config/config.h.in b/config/config.h.in
index 50e547b3e4..685bd5e392 100644
--- a/config/config.h.in
+++ b/config/config.h.in
@@ -42,7 +42,6 @@
#define HAVE_LIBINTL_H 1
#define HAVE_LOCALE_H 1
#define HAVE_LSTAT 1
-#define HAVE_MATH_H 1
#define HAVE_MKDTEMP 1
#define HAVE_NANOSLEEP 1
#define HAVE_NL_LANGINFO_CODESET 1
diff --git a/src/eval.c b/src/eval.c
index ad780e3024..74474a4bde 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -64,7 +64,7 @@
#include "os/os.h"
#include "os/shell.h"
-#if defined(FEAT_FLOAT) && defined(HAVE_MATH_H)
+#if defined(FEAT_FLOAT)
# include <math.h>
#endif
diff --git a/src/ex_cmds2.c b/src/ex_cmds2.c
index d0e27d0248..5b7e32fcce 100644
--- a/src/ex_cmds2.c
+++ b/src/ex_cmds2.c
@@ -824,9 +824,7 @@ proftime_T *tm;
}
-# if defined(HAVE_MATH_H)
-# include <math.h>
-# endif
+#include <math.h>
/*
* Divide the time "tm" by "count" and store in "tm2".
diff --git a/src/message.c b/src/message.c
index 82cdb07598..76547c97d7 100644
--- a/src/message.c
+++ b/src/message.c
@@ -35,7 +35,7 @@
#include "ui.h"
#include "os/os.h"
-#if defined(FEAT_FLOAT) && defined(HAVE_MATH_H)
+#if defined(FEAT_FLOAT)
# include <math.h>
#endif