aboutsummaryrefslogtreecommitdiff
path: root/readline/examples/rltest.c
diff options
context:
space:
mode:
Diffstat (limited to 'readline/examples/rltest.c')
-rw-r--r--readline/examples/rltest.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/readline/examples/rltest.c b/readline/examples/rltest.c
index 453f8ec..6250f90 100644
--- a/readline/examples/rltest.c
+++ b/readline/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 ();