aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/ruby/encoding.h4
-rw-r--r--include/ruby/io.h4
-rw-r--r--internal.h2
3 files changed, 2 insertions, 8 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h
index 93939ee7db..7ba7974265 100644
--- a/include/ruby/encoding.h
+++ b/include/ruby/encoding.h
@@ -12,10 +12,6 @@
#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 152f4ef763..7d7b1a0f01 100644
--- a/include/ruby/io.h
+++ b/include/ruby/io.h
@@ -12,10 +12,6 @@
#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
diff --git a/internal.h b/internal.h
index 853274ec4a..5b7f87ae8d 100644
--- a/internal.h
+++ b/internal.h
@@ -21,6 +21,8 @@ extern "C" {
#endif
#endif
+#include "ruby/encoding.h"
+#include "ruby/io.h"
#include "internal/stdbool.h"
#include "internal/bits.h"