From dde694056d63c590b4f406f1fa9af1697c26a624 Mon Sep 17 00:00:00 2001 From: Kristof Szabados <Kristof.Szabados@ericsson.com> Date: Thu, 2 Feb 2017 08:45:22 +0100 Subject: [PATCH] as isnan is no longer available like the old way, first lets try to use math.h to be consistent with other parts of source code. Signed-off-by: Kristof Szabados <Kristof.Szabados@ericsson.com> --- xsdconvert/GeneralFunctions.cc | 3 ++- xsdconvert/SimpleType.cc | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/xsdconvert/GeneralFunctions.cc b/xsdconvert/GeneralFunctions.cc index 818e4fee9..1a92890dd 100644 --- a/xsdconvert/GeneralFunctions.cc +++ b/xsdconvert/GeneralFunctions.cc @@ -24,7 +24,8 @@ #include <cctype> // for using "toupper" function #include <cstring> #include <cstdio> -#include <cmath> +// TODO: once we can use C++11 as the base platform replace with cmath +#include <math.h> #include <regex.h> #include "../common/version_internal.h" diff --git a/xsdconvert/SimpleType.cc b/xsdconvert/SimpleType.cc index cad677b8e..72b7ebf43 100644 --- a/xsdconvert/SimpleType.cc +++ b/xsdconvert/SimpleType.cc @@ -23,7 +23,8 @@ #include "ComplexType.hh" #include "Constant.hh" -#include <cmath> // for using "pow" function +// TODO: once we can use C++11 as the base platform replace with cmath +#include <math.h> // for using "pow" function #include <cfloat> extern bool g_flag_used; -- GitLab