summaryrefslogtreecommitdiff
path: root/src/main.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/main.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/main.cc')
-rw-r--r--src/main.cc6
1 files changed, 3 insertions, 3 deletions
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 <boost/nowide/args.hpp>
#endif
-#ifdef HAVE_EDIT
+#if HAVE_EDIT
#include <editline/readline.h>
#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<char *>("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);