summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-09 12:35:12 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-01-09 12:35:12 +0000
commit51edb3004256698d91ab0ed685d705c9bb23bc22 (patch)
tree4062572dc32c3cb0d2e256a8ac1ed3792b0f9620 /include
parent9c2c2f77ba4b346e99f00862ac6340ff1a33a82c (diff)
Include ruby/{io,encoding}.h before internal.h
because of r61712 and r61713 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/encoding.h4
-rw-r--r--include/ruby/io.h4
2 files changed, 8 insertions, 0 deletions
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