From 89c10f989d8da6474a342dbef9a5f712ea02ab5d Mon Sep 17 00:00:00 2001 From: Vasily Efimov Date: Fri, 1 Sep 2023 23:21:08 +0300 Subject: [PATCH] Fixup building on Ubuntu 18.04 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Build errors examples: ``` ../src/utils/util.h:17:19: error: ‘isnan’ is not a member of ‘std’ if (!std::isnan(v1) && !std::isnan(v2)) return qMin(v1, v2); ^~~~~ ``` ``` ../src/tables/heightmaptablemodel.cpp:20:24: error: ‘NAN’ was not declared in this scope row.append(NAN); ^~~ ``` --- src/tables/heightmaptablemodel.cpp | 1 + src/utils/util.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/tables/heightmaptablemodel.cpp b/src/tables/heightmaptablemodel.cpp index 43d424db0..d0ff8ebbe 100644 --- a/src/tables/heightmaptablemodel.cpp +++ b/src/tables/heightmaptablemodel.cpp @@ -2,6 +2,7 @@ // Copyright 2015 Hayrullin Denis Ravilevich #include "heightmaptablemodel.h" +#include HeightMapTableModel::HeightMapTableModel(QObject *parent) : QAbstractTableModel(parent) { diff --git a/src/utils/util.h b/src/utils/util.h index e69480845..47996fc55 100644 --- a/src/utils/util.h +++ b/src/utils/util.h @@ -8,6 +8,7 @@ #include #include #include +#include class Util {