diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/file.c | 5 | ||||
| -rw-r--r-- | src/file_test.c | 5 | ||||
| -rw-r--r-- | src/io.c | 5 |
3 files changed, 15 insertions, 0 deletions
diff --git a/src/file.c b/src/file.c index ea45b2c0b..eb4534168 100644 --- a/src/file.c +++ b/src/file.c @@ -8,7 +8,12 @@ #include "mruby/class.h" #include "mruby/data.h" #include "mruby/string.h" + +#if MRUBY_RELEASE_NO < 10000 #include "error.h" +#else +#include "mruby/error.h" +#endif #include <sys/file.h> #include <fcntl.h> diff --git a/src/file_test.c b/src/file_test.c index 872f7aebc..cb1f6229d 100644 --- a/src/file_test.c +++ b/src/file_test.c @@ -8,7 +8,12 @@ #include "mruby/class.h" #include "mruby/data.h" #include "mruby/string.h" + +#if MRUBY_RELEASE_NO < 10000 #include "error.h" +#else +#include "mruby/error.h" +#endif #include <sys/file.h> #include <libgen.h> @@ -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); |
