From a0c9ebf4835af795a02cde21da870a0e1ef475d3 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Thu, 26 Apr 2012 20:07:35 +0200 Subject: std::isnan is c++11; use rtl::math::isNan for now --- test/source/diff/diff.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/source/diff/diff.cxx b/test/source/diff/diff.cxx index 2c4f14d317e1..2d57a4aec2ab 100644 --- a/test/source/diff/diff.cxx +++ b/test/source/diff/diff.cxx @@ -29,6 +29,7 @@ #include "test/xmldiff.hxx" #include +#include #include #include #include @@ -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; -- cgit