From aad12519829ba66272c25ea190047544ee69a2c9 Mon Sep 17 00:00:00 2001 From: Kristof Szabados <Kristof.Szabados@ericsson.com> Date: Sat, 4 Feb 2017 17:49:06 +0100 Subject: [PATCH] math operations are only present in the cc not in the header. Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com> --- compiler2/Real.cc | 1 + compiler2/Real.hh | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler2/Real.cc b/compiler2/Real.cc index c9f5a8179..54b16ea46 100644 --- a/compiler2/Real.cc +++ b/compiler2/Real.cc @@ -25,6 +25,7 @@ #include <stdlib.h> #include <errno.h> #include <string.h> +#include <cmath> namespace Common { diff --git a/compiler2/Real.hh b/compiler2/Real.hh index 1d6ebcf35..46f9655ee 100644 --- a/compiler2/Real.hh +++ b/compiler2/Real.hh @@ -18,7 +18,6 @@ #define _Common_Real_HH #include "string.hh" -#include <math.h> // older versions of gcc do not have numeric_limits<double> or it is wrong // and they do not have constants defined by C99 standard -- GitLab