includes: Newer Visual Studio versions have isfinite and friends.

Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Stefan Dösinger 2019-11-17 13:43:13 +01:00 committed by Alexandre Julliard
parent fbfd697f89
commit af7ace7990
1 changed files with 9 additions and 3 deletions

View File

@ -58,9 +58,15 @@
#ifdef _MSC_VER #ifdef _MSC_VER
#define ftruncate chsize #define ftruncate chsize
#define isfinite(x) _finite(x) #ifndef isfinite
#define isinf(x) (!(_finite(x) || _isnan(x))) # define isfinite(x) _finite(x)
#define isnan(x) _isnan(x) #endif
#ifndef isinf
# define isinf(x) (!(_finite(x) || _isnan(x)))
#endif
#ifndef isnan
# define isnan(x) _isnan(x)
#endif
#define popen _popen #define popen _popen
#define pclose _pclose #define pclose _pclose
#define snprintf _snprintf #define snprintf _snprintf