summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2023-04-19 10:22:43 +0200
committerGitHub <noreply@github.com>2023-04-19 10:22:43 +0200
commit1a5fba25987c8f44a0fdcf8219d9243a3d04dda2 (patch)
tree9ddc6177529da531c4c25852f2ca88adde7740f3 /src/main.cc
parentbd510c2e5f6269b4112f032d2a9e1d7665e4fd74 (diff)
parentd2de65d7d8b366bc3a6291831e7a1090e2e940a4 (diff)
downloadfork-ledger-1a5fba25987c8f44a0fdcf8219d9243a3d04dda2.tar.gz
fork-ledger-1a5fba25987c8f44a0fdcf8219d9243a3d04dda2.tar.bz2
fork-ledger-1a5fba25987c8f44a0fdcf8219d9243a3d04dda2.zip
Merge pull request #2238 from afh/cleanup-system-defines
Cleanup system defines
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);