Fix compilation error of undefined TRUE

This commit is contained in:
Anton Kochkov 2024-02-19 23:08:32 +08:00 committed by Anton Kochkov
parent 8574f0b0e4
commit 1a52a7eea4

View File

@ -94,7 +94,7 @@ void GraphvizLayout::CalculateLayout(std::unordered_map<ut64, GraphBlock> &block
std::unordered_map<ut64, Agnode_t *> nodes; std::unordered_map<ut64, Agnode_t *> nodes;
for (const auto &block : blocks) { for (const auto &block : blocks) {
nodes[block.first] = agnode(g, nullptr, TRUE); nodes[block.first] = agnode(g, nullptr, true);
} }
std::vector<std::string> strc; std::vector<std::string> strc;
@ -143,7 +143,7 @@ void GraphvizLayout::CalculateLayout(std::unordered_map<ut64, GraphBlock> &block
if (v == nodes.end()) { if (v == nodes.end()) {
continue; continue;
} }
auto e = agedge(g, u, v->second, nullptr, TRUE); auto e = agedge(g, u, v->second, nullptr, true);
edges[{ blockIt.first, edge.target }] = e; edges[{ blockIt.first, edge.target }] = e;
if (loopEdges.find({ blockIt.first, edge.target }) != loopEdges.end()) { if (loopEdges.find({ blockIt.first, edge.target }) != loopEdges.end()) {
agxset(e, constraintAttr, STR("0")); agxset(e, constraintAttr, STR("0"));