Commit 9d6f7fa4 by Alan Mishchenko

Added detection of 'readline' library at compile-time.

parent 65cf119c
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "base/abc/abc.h" #include "base/abc/abc.h"
#include "mainInt.h" #include "mainInt.h"
#if !defined(_WIN32) && defined(HAVE_LIBREADLINE) #if !defined(_WIN32) //&& defined(HAVE_LIBREADLINE)
#include <readline/readline.h> #include <readline/readline.h>
#include <readline/history.h> #include <readline/history.h>
#endif #endif
...@@ -72,7 +72,7 @@ char * Abc_UtilsGetUsersInput( Abc_Frame_t * pAbc ) ...@@ -72,7 +72,7 @@ char * Abc_UtilsGetUsersInput( Abc_Frame_t * pAbc )
{ {
static char Prompt[5000]; static char Prompt[5000];
sprintf( Prompt, "abc %02d> ", pAbc->nSteps ); sprintf( Prompt, "abc %02d> ", pAbc->nSteps );
#if !defined(_WIN32) && defined(HAVE_LIBREADLINE) #if !defined(_WIN32) //&& defined(HAVE_LIBREADLINE)
{ {
static char * line = NULL; static char * line = NULL;
if (line != NULL) ABC_FREE(line); if (line != NULL) ABC_FREE(line);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment