diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2012-10-02 16:46:55 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2012-10-02 16:46:55 -0700 |
commit | 65cf119c2b0e0eaefd1e412f6c93d73b9f1401c7 (patch) | |
tree | 33467d8c9eabdc6d5636c541444cf242544f396f /src/base | |
parent | 4aa33e7d0f8853443a2d33aa264ad27e60aa5ee8 (diff) | |
download | abc-65cf119c2b0e0eaefd1e412f6c93d73b9f1401c7.tar.gz abc-65cf119c2b0e0eaefd1e412f6c93d73b9f1401c7.tar.bz2 abc-65cf119c2b0e0eaefd1e412f6c93d73b9f1401c7.zip |
Added detection of 'readline' library at compile-time.
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/main/mainUtils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/base/main/mainUtils.c b/src/base/main/mainUtils.c index 237eec94..8408568f 100644 --- a/src/base/main/mainUtils.c +++ b/src/base/main/mainUtils.c @@ -21,7 +21,7 @@ #include "base/abc/abc.h" #include "mainInt.h" -#if !defined(_WIN32) && defined(READLINE) +#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(READLINE) +#if !defined(_WIN32) && defined(HAVE_LIBREADLINE) { static char * line = NULL; if (line != NULL) ABC_FREE(line); |