Mercurial > vim
changeset 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 | c95eb7dfc03f |
children | 96b5bf36b926 |
files | src/macros.h src/version.c |
diffstat | 2 files changed, 8 insertions(+), 5 deletions(-) [+] |
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