summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--raul/AtomRDF.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/raul/AtomRDF.hpp b/raul/AtomRDF.hpp
index 1aebe49..18073a9 100644
--- a/raul/AtomRDF.hpp
+++ b/raul/AtomRDF.hpp
@@ -21,7 +21,7 @@
#include <cstring>
#include <string>
#include <sstream>
-#include <math.h>
+#include <cmath>
#include "raul/Atom.hpp"
#include "redlandmm/Node.hpp"
@@ -73,7 +73,7 @@ atom_to_node(Redland::World& world, const Atom& atom)
type = librdf_new_uri(world.world(), CUC("http://www.w3.org/2001/XMLSchema#integer"));
break;
case Atom::FLOAT:
- if (isnan(atom.get_float()) || isinf(atom.get_float()))
+ if (std::isnan(atom.get_float()) || std::isinf(atom.get_float()))
break;
os.precision(8);
os << atom.get_float();