# HG changeset patch # User schloegl # Date 1427748531 0 # Node ID 5d4cdc6e7bec4638a2227ac71157ae55588b0ef6 # Parent 22658fcb51e9b144fe2da61184bd381d4ca4de6b replace isnan with __isnan to fix cross-compilation with MXE diff -r 22658fcb51e9 -r 5d4cdc6e7bec extra/NaN/src/histo_mex.cpp --- a/extra/NaN/src/histo_mex.cpp Mon Mar 30 19:47:23 2015 +0000 +++ b/extra/NaN/src/histo_mex.cpp Mon Mar 30 20:48:51 2015 +0000 @@ -109,7 +109,7 @@ float f1,f2; f1 = ((float*)Sort.Table)[ix1]; f2 = ((float*)Sort.Table)[ix2]; - switch (isnan(f1) + 2*isnan(f2)) { + switch (__isnanf(f1) + 2*__isnanf(f2)) { case 0: if (f1f2) z = 1; @@ -124,7 +124,7 @@ double f1,f2; f1 = ((double*)Sort.Table)[ix1]; f2 = ((double*)Sort.Table)[ix2]; - switch (isnan(f1) + 2*isnan(f2)) { + switch (__isnan(f1) + 2*__isnan(f2)) { case 0: if (f1f2) z = 1;