Skip to content

Commit

Permalink
Silly bug fix
Browse files Browse the repository at this point in the history
include float.h and math.h when floating point support is enabled
  • Loading branch information
chenyang78 committed Sep 21, 2014
1 parent d69927c commit 51197ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/OutputMgr.cpp
Expand Up @@ -286,8 +286,9 @@ OutputMgr::OutputHeader(int argc, char *argv[], unsigned long seed)
out << "#define NO_LONGLONG" << std::endl;
out << endl;
}
if (!CGOptions::enable_float()) {
if (CGOptions::enable_float()) {
out << "#include <float.h>\n";
out << "#include <math.h>\n";
}

ExtensionMgr::OutputHeader(out);
Expand Down

0 comments on commit 51197ec

Please sign in to comment.