Remove unnecessary `#include` in generated files
MODIFY
lib/mruby/gem.rb
lib/mruby/gem.rb
@@ -248,6 +248,10 @@ module MRuby
f.puts %Q[#include <mruby.h>]
else
f.puts %Q[#include <stdlib.h>]
+ unless build.presym_enabled?
+ f.puts %Q[#include <mruby.h>]
+ f.puts %Q[#include <mruby/proc.h>]
+ end
end
end

MODIFY
src/dump.c
src/dump.c
@@ -926,8 +926,6 @@ mrb_dump_irep_cfunc(mrb_state *mrb, const mrb_irep *irep, uint8_t flags, FILE *f
return MRB_DUMP_WRITE_FAULT;
}
if (fprintf(fp,
- "#include <mruby.h>\n"
- "#include <mruby/proc.h>\n"
"#ifdef __cplusplus\n"
"extern const uint8_t %s[];\n"
"#endif\n"

Remove unnecessary `#include` in generated files