mirror of
				https://github.com/troglobit/editline.git
				synced 2025-11-01 00:55:35 +08:00 
			
		
		
		
	examples: Define EDITLINE_LIBRARY when building locally
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Joachim Nilsson
					Joachim Nilsson