mirror of
https://github.com/troglobit/editline.git
synced 2025-05-05 20:11:12 +08:00
examples: Define EDITLINE_LIBRARY when building locally
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
779db8817e
commit
53b160f6a1
@ -1,4 +1,5 @@
|
||||
noinst_PROGRAMS = testit cli excallback
|
||||
LDADD = $(top_builddir)/src/libeditline.la
|
||||
AM_CPPFLAGS = -DEDITLINE_LIBRARY
|
||||
AM_CFLAGS = -I$(top_srcdir)/src -I$(top_srcdir)/include
|
||||
AM_LDFLAGS = -static
|
||||
|
@ -50,8 +50,8 @@ Jeff
|
||||
|
||||
#include <termios.h> /* xxx - should make this more general */
|
||||
|
||||
#ifdef READLINE_LIBRARY
|
||||
# include "readline.h"
|
||||
#ifdef EDITLINE_LIBRARY
|
||||
# include "editline.h"
|
||||
#else
|
||||
# include <readline/readline.h>
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user