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

This commit is contained in:
Alan Mishchenko 2012-10-02 17:00:03 -07:00
parent 65cf119c2b
commit 9d6f7fa4e6
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@
#include "base/abc/abc.h"
#include "mainInt.h"
#if !defined(_WIN32) && defined(HAVE_LIBREADLINE)
#if !defined(_WIN32) //&& defined(HAVE_LIBREADLINE)
#include <readline/readline.h>
#include <readline/history.h>
#endif
@ -72,7 +72,7 @@ char * Abc_UtilsGetUsersInput( Abc_Frame_t * pAbc )
{
static char Prompt[5000];
sprintf( Prompt, "abc %02d> ", pAbc->nSteps );
#if !defined(_WIN32) && defined(HAVE_LIBREADLINE)
#if !defined(_WIN32) //&& defined(HAVE_LIBREADLINE)
{
static char * line = NULL;
if (line != NULL) ABC_FREE(line);