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/main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.cc') diff --git a/src/main.cc b/src/main.cc index bc2a1e28..6b3e1eb3 100644 --- a/src/main.cc +++ b/src/main.cc @@ -39,7 +39,7 @@ #include #endif -#ifdef HAVE_EDIT +#if HAVE_EDIT #include #endif @@ -137,7 +137,7 @@ int main(int argc, char * argv[], char * envp[]) bool exit_loop = false; -#ifdef HAVE_EDIT +#if HAVE_EDIT rl_readline_name = const_cast("Ledger"); // TODO: rl_attempted_completion_function = ledger_completion; @@ -178,7 +178,7 @@ int main(int argc, char * argv[], char * envp[]) global_scope->execute_command_wrapper(split_arguments(p), true); } -#ifdef HAVE_EDIT +#if HAVE_EDIT if (expansion) std::free(expansion); std::free(p); -- cgit v1.2.3