From 53b160f6a110781bbc3beefa019b96ac49a83fb7 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 2 Dec 2017 21:14:49 +0100 Subject: [PATCH] examples: Define EDITLINE_LIBRARY when building locally Signed-off-by: Joachim Nilsson --- examples/Makefile.am | 1 + examples/excallback.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/Makefile.am b/examples/Makefile.am index a3162a0..a366db8 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -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 diff --git a/examples/excallback.c b/examples/excallback.c index a2d24af..4053246 100644 --- a/examples/excallback.c +++ b/examples/excallback.c @@ -50,8 +50,8 @@ Jeff #include /* xxx - should make this more general */ -#ifdef READLINE_LIBRARY -# include "readline.h" +#ifdef EDITLINE_LIBRARY +# include "editline.h" #else # include #endif