summaryrefslogtreecommitdiffstats
path: root/raul
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-11 23:48:50 +0000
committerDavid Robillard <d@drobilla.net>2009-05-11 23:48:50 +0000
commit7cd522a148551384fac536e883a595ecc35aadb6 (patch)
treefb46a342a0a8247334329239b7ec8f46ebf01d68 /raul
parent1f8eca44b68052f8306d9166cc062e6fe344c988 (diff)
downloadraul-7cd522a148551384fac536e883a595ecc35aadb6.tar.gz
raul-7cd522a148551384fac536e883a595ecc35aadb6.tar.bz2
raul-7cd522a148551384fac536e883a595ecc35aadb6.zip
Fix OSX compilation (ticket #326).
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@1982 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'raul')
-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();