aboutsummaryrefslogtreecommitdiff
path: root/readline/examples/rlversion.c
diff options
context:
space:
mode:
Diffstat (limited to 'readline/examples/rlversion.c')
-rw-r--r--readline/examples/rlversion.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/readline/examples/rlversion.c b/readline/examples/rlversion.c
index 2d73a96..652d37c 100644
--- a/readline/examples/rlversion.c
+++ b/readline/examples/rlversion.c
@@ -2,8 +2,6 @@
* rlversion -- print out readline's version number
*/
-#define READLINE_LIBRARY
-
#if defined (HAVE_CONFIG_H)
# include <config.h>
#endif
@@ -12,7 +10,11 @@
#include <sys/types.h>
#include "posixstat.h"
-#include "readline.h"
+#ifdef READLINE_LIBRARY
+# include "readline.h"
+#else
+# include <readline/readline.h>
+#endif
main()
{