C99/C++11: replace deprecated finite() by isfinite().

This commit is contained in:
2016-05-16 00:48:02 +02:00
parent 2b73402547
commit 21fddf7d1c
19 changed files with 35 additions and 45 deletions

View File

@@ -37,10 +37,6 @@
#include <math.h>
#include "BLI_math_inline.h"
#ifdef __sun__
#include <ieeefp.h> /* for finite() */
#endif
#ifndef M_PI
#define M_PI 3.14159265358979323846 /* pi */
#endif
@@ -146,12 +142,6 @@ static const int NAN_INT = 0x7FC00000;
#endif /* C99, POSIX.1-2001 or MSVC12 (partial C99) */
#ifdef WIN32
# if defined(_MSC_VER)
# define finite(n) _finite(n)
# endif
#endif
#if BLI_MATH_DO_INLINE
#include "intern/math_base_inline.c"
#endif