summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-04-26 20:07:35 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-04-26 20:07:35 +0200
commita0c9ebf4835af795a02cde21da870a0e1ef475d3 (patch)
tree73aa767bb16244a287bc90dca97d6eb3d428b325 /test
parentd028dca13ba8cc0906fe613ad44a854d299b1b0b (diff)
std::isnan is c++11; use rtl::math::isNan for now
Diffstat (limited to 'test')
-rw-r--r--test/source/diff/diff.cxx3
1 files changed, 2 insertions, 1 deletions
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 <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;