Mercurial > forge
changeset 12573:5d4cdc6e7bec octave-forge
replace isnan with __isnan to fix cross-compilation with MXE
author | schloegl |
---|---|
date | Mon, 30 Mar 2015 20:48:51 +0000 |
parents | 22658fcb51e9 |
children | be7bdefa4a1f |
files | extra/NaN/src/histo_mex.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 (f1<f2) z = -1; else if (f1>f2) 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 (f1<f2) z = -1; else if (f1>f2) z = 1;