Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
30315:c95eb7dfc03f | 30316:f0afaca0bf74 |
---|---|
259 | 259 |
260 #if defined(FEAT_JOB_CHANNEL) || defined(FEAT_CLIENTSERVER) | 260 #if defined(FEAT_JOB_CHANNEL) || defined(FEAT_CLIENTSERVER) |
261 # define MESSAGE_QUEUE | 261 # define MESSAGE_QUEUE |
262 #endif | 262 #endif |
263 | 263 |
264 #include <float.h> | |
265 #if defined(HAVE_MATH_H) | |
266 // for isnan() and isinf() | |
267 # include <math.h> | |
268 #endif | |
269 | |
264 #if defined(FEAT_EVAL) | 270 #if defined(FEAT_EVAL) |
265 # include <float.h> | |
266 # if defined(HAVE_MATH_H) | |
267 // for isnan() and isinf() | |
268 # include <math.h> | |
269 # endif | |
270 # ifdef USING_FLOAT_STUFF | 271 # ifdef USING_FLOAT_STUFF |
271 # ifdef MSWIN | 272 # ifdef MSWIN |
272 # ifndef isnan | 273 # ifndef isnan |
273 # define isnan(x) _isnan(x) | 274 # define isnan(x) _isnan(x) |
274 static __inline int isinf(double x) { return !_finite(x) && !_isnan(x); } | 275 static __inline int isinf(double x) { return !_finite(x) && !_isnan(x); } |