diff options
| author | Akira Yumiyama <[email protected]> | 2014-02-22 20:45:07 +0900 |
|---|---|---|
| committer | Akira Yumiyama <[email protected]> | 2014-02-22 20:45:07 +0900 |
| commit | d28f0421180b34f9f3fc3ae4e9b5c55ecae2e8f1 (patch) | |
| tree | 1f43115e363cd8d86851328c52b6f0583b4b5941 /src/io.c | |
| parent | 7fd585bae174751e69b3a5e3a65e18eabaf7b1bd (diff) | |
| download | mruby-d28f0421180b34f9f3fc3ae4e9b5c55ecae2e8f1.tar.gz mruby-d28f0421180b34f9f3fc3ae4e9b5c55ecae2e8f1.zip | |
compatibility support (mruby/mruby, iij/mruby and 1.0.0)
- refs https://github.com/mruby/mruby/commit/36e234aa377d50d8ee425c7868e0651cf78e85cf
Diffstat (limited to 'src/io.c')
| -rw-r--r-- | src/io.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -12,7 +12,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); |
