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>");