mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 7.4.1440
Problem: Can't build on Windows. Solution: Change #ifdefs. Only define isnan when used.
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
/*
|
||||
* eval.c: Expression evaluation.
|
||||
*/
|
||||
#define USING_FLOAT_STUFF
|
||||
|
||||
#include "vim.h"
|
||||
|
||||
|
@@ -12,6 +12,7 @@
|
||||
*
|
||||
* Follows this standard: https://tools.ietf.org/html/rfc7159.html
|
||||
*/
|
||||
#define USING_FLOAT_STUFF
|
||||
|
||||
#include "vim.h"
|
||||
|
||||
|
@@ -327,9 +327,12 @@
|
||||
/* for isnan() and isinf() */
|
||||
# include <math.h>
|
||||
# endif
|
||||
# if defined(WIN32) && !defined(isnan)
|
||||
# ifdef USING_FLOAT_STUFF
|
||||
# if defined(WIN32)
|
||||
# ifndef isnan
|
||||
# define isnan(x) _isnan(x)
|
||||
# define isinf(x) (!_finite(x) && !_isnan(x))
|
||||
# endif
|
||||
# else
|
||||
# ifndef HAVE_ISNAN
|
||||
static inline int isnan(double x) { return x != x; }
|
||||
@@ -348,4 +351,5 @@
|
||||
# if !defined(NAN)
|
||||
# define NAN (INFINITY-INFINITY)
|
||||
# endif
|
||||
# endif
|
||||
#endif
|
||||
|
@@ -743,6 +743,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1440,
|
||||
/**/
|
||||
1439,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user