diff options
| author | Tomoyuki Sahara <[email protected]> | 2014-02-14 10:36:37 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2014-02-14 10:36:37 +0900 |
| commit | 7fd585bae174751e69b3a5e3a65e18eabaf7b1bd (patch) | |
| tree | ae59b256ac6e1dd415110189ccdb0d81838ebea2 /src | |
| parent | daa65c15dea5157a67876bd4b450971bd4832862 (diff) | |
| download | mruby-7fd585bae174751e69b3a5e3a65e18eabaf7b1bd.tar.gz mruby-7fd585bae174751e69b3a5e3a65e18eabaf7b1bd.zip | |
support older version.
Diffstat (limited to 'src')
| -rw-r--r-- | src/io.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -18,6 +18,14 @@ 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); static int mrb_io_flags_to_modenum(mrb_state *mrb, int flags); +#if MRUBY_RELEASE_NO < 10000 +static struct RClass * +mrb_module_get(mrb_state *mrb, const char *name) +{ + return mrb_class_get(mrb, name); +} +#endif + static int mrb_io_modestr_to_flags(mrb_state *mrb, const char *mode) { |
