diff options
-rw-r--r-- | ext/objspace/objspace.c | 2 | ||||
-rw-r--r-- | ext/objspace/objspace_dump.c | 2 | ||||
-rw-r--r-- | ext/pty/pty.c | 2 | ||||
-rw-r--r-- | include/ruby/encoding.h | 4 | ||||
-rw-r--r-- | include/ruby/io.h | 4 | ||||
-rw-r--r-- | marshal.c | 2 | ||||
-rw-r--r-- | process.c | 3 | ||||
-rw-r--r-- | thread.c | 3 |
8 files changed, 16 insertions, 6 deletions
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c index 0873ef9bcb..e410941c7d 100644 --- a/ext/objspace/objspace.c +++ b/ext/objspace/objspace.c @@ -12,9 +12,9 @@ **********************************************************************/ +#include <ruby/io.h> #include "internal.h" #include <ruby/st.h> -#include <ruby/io.h> #include <ruby/re.h> #include "node.h" #include "gc.h" diff --git a/ext/objspace/objspace_dump.c b/ext/objspace/objspace_dump.c index 19ba1f2e8b..8bd7c6769b 100644 --- a/ext/objspace/objspace_dump.c +++ b/ext/objspace/objspace_dump.c @@ -12,9 +12,9 @@ **********************************************************************/ +#include "ruby/io.h" #include "internal.h" #include "ruby/debug.h" -#include "ruby/io.h" #include "gc.h" #include "node.h" #include "vm_core.h" diff --git a/ext/pty/pty.c b/ext/pty/pty.c index 7726f154eb..fb9ff19a94 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -35,8 +35,8 @@ #endif #include <ctype.h> -#include "internal.h" #include "ruby/io.h" +#include "internal.h" #include "ruby/util.h" #include <signal.h> diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index e6ceb19cdf..0c7e1e3d6a 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -12,6 +12,10 @@ #ifndef RUBY_ENCODING_H #define RUBY_ENCODING_H 1 +#ifdef RUBY_INTERNAL_H +#error "Include this file before internal.h" +#endif + #if defined(__cplusplus) extern "C" { #if 0 diff --git a/include/ruby/io.h b/include/ruby/io.h index 60d6f6d32e..cde932ff32 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -12,6 +12,10 @@ #ifndef RUBY_IO_H #define RUBY_IO_H 1 +#ifdef RUBY_INTERNAL_H +#error "Include this file before internal.h" +#endif + #if defined(__cplusplus) extern "C" { #if 0 @@ -13,8 +13,8 @@ # error too old GCC #endif -#include "internal.h" #include "ruby/io.h" +#include "internal.h" #include "ruby/st.h" #include "ruby/util.h" #include "encindex.h" @@ -11,8 +11,9 @@ **********************************************************************/ -#include "internal.h" +#include "ruby/config.h" #include "ruby/io.h" +#include "internal.h" #include "ruby/thread.h" #include "ruby/util.h" #include "vm_core.h" @@ -63,10 +63,11 @@ /* for model 2 */ +#include "ruby/config.h" +#include "ruby/io.h" #include "eval_intern.h" #include "gc.h" #include "timev.h" -#include "ruby/io.h" #include "ruby/thread.h" #include "ruby/thread_native.h" #include "ruby/debug.h" |