summaryrefslogtreecommitdiff
path: root/examples/rltest.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rltest.c')
-rw-r--r--examples/rltest.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/rltest.c b/examples/rltest.c
index 453f8ec..6250f90 100644
--- a/examples/rltest.c
+++ b/examples/rltest.c
@@ -4,20 +4,20 @@
/* */
/* **************************************************************** */
-/*
- * Remove the next line if you're compiling this against an installed
- * libreadline.a
- */
-#define READLINE_LIBRARY
-
#if defined (HAVE_CONFIG_H)
#include <config.h>
#endif
#include <stdio.h>
#include <sys/types.h>
-#include "readline.h"
-#include "history.h"
+
+#ifdef READLINE_LIBRARY
+# include "readline.h"
+# include "history.h"
+#else
+# include <readline/readline.h>
+# include <readline/history.h>
+#endif
extern HIST_ENTRY **history_list ();