diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/Makefile b/Ghidra/Features/Decompiler/src/decompile/cpp/Makefile index 3343f54ec5..c4d34ca2cf 100644 --- a/Ghidra/Features/Decompiler/src/decompile/cpp/Makefile +++ b/Ghidra/Features/Decompiler/src/decompile/cpp/Makefile @@ -35,16 +35,15 @@ ifeq ($(OS),Darwin) OSDIR=mac_x86_64 endif -CC=gcc -CXX=g++ +CXX=g++ -std=c++11 # Debug flags -DBG_CXXFLAGS=-g -std=c++11 -Wall -Wno-sign-compare +DBG_CXXFLAGS=-g -Wall -Wno-sign-compare #DBG_CXXFLAGS=-g -pg -Wall -Wno-sign-compare #DBG_CXXFLAGS=-g -fprofile-arcs -ftest-coverage -Wall -Wno-sign-compare # Optimization flags -OPT_CXXFLAGS=-O2 -std=c++11 -Wall -Wno-sign-compare +OPT_CXXFLAGS=-O2 -Wall -Wno-sign-compare YACC=bison diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc index 38c973ce85..115d697497 100644 --- a/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc +++ b/Ghidra/Features/Decompiler/src/decompile/cpp/float.cc @@ -22,8 +22,6 @@ using std::ldexp; using std::frexp; using std::signbit; -using std::isnan; -using std::isinf; using std::sqrt; using std::floor; using std::ceil; @@ -92,8 +90,8 @@ FloatFormat::floatclass FloatFormat::extractExpSig(double x,bool *sgn,uintb *sig *sgn = signbit(x); if (x == 0.0) return zero; - if (isinf(x)) return infinity; - if (isnan(x)) return nan; + if (std::isinf(x)) return infinity; + if (std::isnan(x)) return nan; if (*sgn) x = -x; double norm = frexp(x,&e); // norm is between 1/2 and 1