Fix compile on MSVC, we don't use "isfinite" anywhere else inside source/blender ;)
authorThomas Dinges <blender@dingto.org>
Tue, 17 Dec 2013 20:36:27 +0000 (21:36 +0100)
committerThomas Dinges <blender@dingto.org>
Tue, 17 Dec 2013 20:36:45 +0000 (21:36 +0100)
source/blender/freestyle/intern/system/PseudoNoise.cpp

index e4fe497e064ad6d5c6da4db7bc549a190b277521..6083a46d609727c2cde6eeb2f46cdf4eedcf3bc0 100644 (file)
  *  \date 16/06/2003
  */
 
-#include <math.h>
+#include "BLI_math.h"
 
 #include "PseudoNoise.h"
 #include "RandGen.h"
 
 static int modf_to_index(Freestyle::real x, unsigned int range)
 {
-       if (isfinite(x)) {
+       if (finite(x)) {
                Freestyle::real tmp;
                int i = abs((int)(modf(x, &tmp) * range));
                BLI_assert(i >= 0 && i < range);