From 2d841fb58bf8fe72d3123c47a9df9cf818b820b6 Mon Sep 17 00:00:00 2001 From: huxingyi Date: Sun, 3 Mar 2019 14:44:48 +0800 Subject: [PATCH] Fix build on ubuntu --- thirdparty/nodemesh/nodemesh/builder.cpp | 2 +- thirdparty/simpleuv/simpleuv/uvunwrapper.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/thirdparty/nodemesh/nodemesh/builder.cpp b/thirdparty/nodemesh/nodemesh/builder.cpp index 554fd7b0..fa2f747d 100644 --- a/thirdparty/nodemesh/nodemesh/builder.cpp +++ b/thirdparty/nodemesh/nodemesh/builder.cpp @@ -283,7 +283,7 @@ bool Builder::validateNormal(const QVector3D &normal) if (normal.isNull()) { return false; } - if (isnan(normal.x()) || isnan(normal.y()) || isnan(normal.z())) { + if (std::isnan(normal.x()) || std::isnan(normal.y()) || std::isnan(normal.z())) { return false; } return true; diff --git a/thirdparty/simpleuv/simpleuv/uvunwrapper.cpp b/thirdparty/simpleuv/simpleuv/uvunwrapper.cpp index 9606e5a7..fcf7eef9 100644 --- a/thirdparty/simpleuv/simpleuv/uvunwrapper.cpp +++ b/thirdparty/simpleuv/simpleuv/uvunwrapper.cpp @@ -2,6 +2,7 @@ #include #include #include +#include #include #include #include