test/source/diff/diff.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit a0c9ebf4835af795a02cde21da870a0e1ef475d3 Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Thu Apr 26 20:07:35 2012 +0200 std::isnan is c++11; use rtl::math::isNan for now diff --git a/test/source/diff/diff.cxx b/test/source/diff/diff.cxx index 2c4f14d..2d57a4a 100644 --- a/test/source/diff/diff.cxx +++ b/test/source/diff/diff.cxx @@ -29,6 +29,7 @@ #include "test/xmldiff.hxx" #include <libxml/xpath.h> +#include <rtl/math.hxx> #include <cstring> #include <cmath> #include <cassert> @@ -224,7 +225,7 @@ bool XMLDiff::compareAttributes(xmlNodePtr node1, xmlNodePtr node2) double dVal1 = xmlXPathCastStringToNumber(val1); double dVal2 = xmlXPathCastStringToNumber(val2); - if(!std::isnan(dVal1) || ! std::isnan(dVal2)) + if(!rtl::math::isNan(dVal1) || !rtl::math::isNan(dVal2)) { //compare by value and respect tolerance tolerance tol; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits