summaryrefslogtreecommitdiff
path: root/test/source/diff
diff options
context:
space:
mode:
Diffstat (limited to 'test/source/diff')
-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;