From 4da7aeee5ef3c884a2fd90901f5b32210a0ff661 Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Thu, 25 Apr 2019 11:05:46 +0100 Subject: [PATCH] Porting: HAS_READLINE --- applications/utilities/mesh/manipulation/setSet/setSet.C | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/applications/utilities/mesh/manipulation/setSet/setSet.C b/applications/utilities/mesh/manipulation/setSet/setSet.C index 90a8b4572..fcb6f7d20 100644 --- a/applications/utilities/mesh/manipulation/setSet/setSet.C +++ b/applications/utilities/mesh/manipulation/setSet/setSet.C @@ -46,7 +46,7 @@ Description #include -#if READLINE != 0 +#if HAS_READLINE #include #include #endif @@ -56,7 +56,7 @@ using namespace Foam; // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // -#if READLINE != 0 +#if HAS_READLINE static const char* historyFile = ".setSet"; #endif @@ -785,7 +785,7 @@ int main(int argc, char *argv[]) fileStreamPtr = new std::ifstream(batchFile.c_str()); } -#if READLINE != 0 +#if HAS_READLINE else if (!read_history(historyFile)) { Info<< "Successfully read history from " << historyFile << endl; @@ -829,7 +829,7 @@ int main(int argc, char *argv[]) } else { -# if READLINE != 0 +# if HAS_READLINE { char* linePtr = readline("readline>");