summaryrefslogtreecommitdiffhomepage
path: root/src/io.c
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2014-02-25 12:20:52 +0900
committerTomoyuki Sahara <[email protected]>2014-02-25 12:20:52 +0900
commitb9dff445822113a8dcb37c0a90f7d6fc733f675d (patch)
tree6ecdce9c5b92fef12f00eb2775c5c57c5783d23a /src/io.c
parent56a8c592dd02cc603a57669b37035f4b8054c587 (diff)
parentd28f0421180b34f9f3fc3ae4e9b5c55ecae2e8f1 (diff)
downloadmruby-b9dff445822113a8dcb37c0a90f7d6fc733f675d.tar.gz
mruby-b9dff445822113a8dcb37c0a90f7d6fc733f675d.zip
Merge branch 'master' of github.com:iij/mruby-io
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/io.c b/src/io.c
index 8c9de3667..933078870 100644
--- a/src/io.c
+++ b/src/io.c
@@ -11,7 +11,12 @@
#include "mruby/string.h"
#include "mruby/variable.h"
#include "mruby/ext/io.h"
+
+#if MRUBY_RELEASE_NO < 10000
#include "error.h"
+#else
+#include "mruby/error.h"
+#endif
static int mrb_io_modestr_to_flags(mrb_state *mrb, const char *modestr);
static int mrb_io_modenum_to_flags(mrb_state *mrb, int modenum);