diff src/macros.h @ 30316:f0afaca0bf74 v9.0.0494

patch 9.0.0494: small build misses float function declaraitons Commit: https://github.com/vim/vim/commit/96caa557f92f7e1fd61d4b401fefd30c91eb44f0 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Sep 17 21:57:43 2022 +0100 patch 9.0.0494: small build misses float function declaraitons Problem: Small build misses float function declaraitons. Solution: Adjust #ifdefs.
author Bram Moolenaar <Bram@vim.org>
date Sat, 17 Sep 2022 23:00:03 +0200
parents 029c59bf78f1
children 3c21865e8068
line wrap: on
line diff
--- a/src/macros.h
+++ b/src/macros.h
@@ -261,12 +261,13 @@
 # define MESSAGE_QUEUE
 #endif
 
+#include <float.h>
+#if defined(HAVE_MATH_H)
+  // for isnan() and isinf()
+# include <math.h>
+#endif
+
 #if defined(FEAT_EVAL)
-# include <float.h>
-# if defined(HAVE_MATH_H)
-   // for isnan() and isinf()
-#  include <math.h>
-# endif
 # ifdef USING_FLOAT_STUFF
 #  ifdef MSWIN
 #   ifndef isnan