summaryrefslogtreecommitdiff
path: root/source4/lib/appweb
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/appweb')
-rw-r--r--source4/lib/appweb/mpr/var.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/source4/lib/appweb/mpr/var.c b/source4/lib/appweb/mpr/var.c
index 533248dd06..d3d21f7eee 100644
--- a/source4/lib/appweb/mpr/var.c
+++ b/source4/lib/appweb/mpr/var.c
@@ -2165,8 +2165,10 @@ bool mprIsNan(double f)
#elif VXWORKS
/* FUTURE */
return (0);
-#else
+#elif defined(FP_NAN)
return (f == FP_NAN);
+#else
+ return 0;
#endif
}
/******************************************************************************/
@@ -2178,8 +2180,10 @@ bool mprIsInfinite(double f)
#elif VXWORKS
/* FUTURE */
return (0);
-#else
+#elif defined(FP_INFINITE)
return (f == FP_INFINITE);
+#else
+ return 0;
#endif
}