macOS: Do not use deprecated finite, but isfinite

This commit is contained in:
Holger Vogt 2019-10-26 16:02:01 +02:00
parent e9d6228c44
commit 6074d2528f
1 changed files with 4 additions and 0 deletions

View File

@ -204,6 +204,10 @@ extern double x_atanh(double);
#pragma warning(disable: 4127)
#endif
#if defined(__APPLE__) && defined(__MACH__)
#define finite isfinite
#endif
#if !defined(NAN)
#if defined(_MSC_VER)
/* NAN is not defined in VS 2012 or older */