From 57fb9abd4355fae4b923403f4bcf51013d16e2c2 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Sat, 15 Apr 2023 14:07:01 +0200 Subject: Use #cmakedefine01 for system capability checks and reply #ifdev HAVE_ with #if HAVE_ --- src/history.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/history.cc') 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 = ⌖ -#if defined(REVERSE_PREDECESSOR_MAP) +#if REVERSE_PREDECESSOR_MAP typedef tuple results_tuple; std::vector 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; -- cgit v1.2.3