summaryrefslogtreecommitdiff
path: root/src/history.cc
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-04-15 14:07:01 +0200
committerAlexis Hildebrandt <afh@surryhill.net>2023-04-15 14:28:29 +0200
commit57fb9abd4355fae4b923403f4bcf51013d16e2c2 (patch)
treebd672d22d3236a2a51a09dc141f6680c74063cea /src/history.cc
parentfac2c16d1237fdeccb4017268f3068254cbde573 (diff)
downloadfork-ledger-57fb9abd4355fae4b923403f4bcf51013d16e2c2.tar.gz
fork-ledger-57fb9abd4355fae4b923403f4bcf51013d16e2c2.tar.bz2
fork-ledger-57fb9abd4355fae4b923403f4bcf51013d16e2c2.zip
Use #cmakedefine01 for system capability checks
and reply #ifdev HAVE_ with #if HAVE_
Diffstat (limited to 'src/history.cc')
-rw-r--r--src/history.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/history.cc b/src/history.cc
index 5dc56b89..fb0d320c 100644
--- a/src/history.cc
+++ b/src/history.cc
@@ -467,7 +467,7 @@ commodity_history_impl_t::find_price(const commodity_t& source,
const commodity_t * last_target = &target;
-#if defined(REVERSE_PREDECESSOR_MAP)
+#if REVERSE_PREDECESSOR_MAP
typedef tuple<const commodity_t *, const commodity_t *,
const price_point_t *> results_tuple;
std::vector<results_tuple> results;
@@ -494,7 +494,7 @@ commodity_history_impl_t::find_price(const commodity_t& source,
const commodity_t * u_comm = get(namemap, u);
const commodity_t * v_comm = get(namemap, v);
-#if defined(REVERSE_PREDECESSOR_MAP)
+#if REVERSE_PREDECESSOR_MAP
if (v == tv && u_comm != last_target && v_comm != last_target)
results_reversed = true;