Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix undeclared function
rb_mmtk_enabled_p
when compiling
I noticed that in CI and locally the `mmtk` branch wasn't compiling and failing on the following compilation errors: ``` gc.c:10074:9: error: call to undeclared function 'rb_mmtk_enabled_p'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (rb_mmtk_enabled_p()) { ^ ``` ``` error.c:1076:39: error: call to undeclared function 'rb_mmtk_enabled_p'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (rb_current_execution_context(!rb_mmtk_enabled_p())) { ^ ``` The `internal/mmtk_support.h` header is included fine, but these two lines were using `ifdef USE_MMTK` rather than `if USE_MMTK`. Changing these allows CRuby mmtk branch to compile correctly.
- Loading branch information