summaryrefslogtreecommitdiff
path: root/ext/readline
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-15 11:49:06 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-15 11:49:06 +0000
commit7cd76ab0c579ee5400d0d33753369e675b497d36 (patch)
treed35212b88b3af66efc3eada3fd4c4e114317d431 /ext/readline
parent64f9f1ba5884975ba91abcdb7697988ba0ba64bf (diff)
* internal.h: Include ruby.h and ruby/encoding.h to be
includable without prior inclusion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/readline')
-rw-r--r--ext/readline/depend1
-rw-r--r--ext/readline/readline.c3
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/readline/depend b/ext/readline/depend
index 40d1bbd..a5ea0a5 100644
--- a/ext/readline/depend
+++ b/ext/readline/depend
@@ -11,4 +11,5 @@ readline.o: $(hdrdir)/ruby/ruby.h
readline.o: $(hdrdir)/ruby/st.h
readline.o: $(hdrdir)/ruby/subst.h
readline.o: $(hdrdir)/ruby/thread.h
+readline.o: $(top_srcdir)/include/ruby.h
# AUTOGENERATED DEPENDENCIES END
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index a196399..5e78af4 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -33,10 +33,9 @@
#include <editline/readline.h>
#endif
-#include "ruby/ruby.h"
+#include "internal.h"
#include "ruby/io.h"
#include "ruby/thread.h"
-#include "internal.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>