File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ static size_t rb_mysql_result_memsize(const void * wrapper) {
143
143
return memsize ;
144
144
}
145
145
146
+ #ifdef HAVE_RB_GC_MARK_MOVABLE
146
147
static void rb_mysql_result_compact (void * wrapper ) {
147
148
mysql2_result_wrapper * w = wrapper ;
148
149
if (w ) {
@@ -153,6 +154,7 @@ static void rb_mysql_result_compact(void * wrapper) {
153
154
rb_mysql2_gc_location (w -> statement );
154
155
}
155
156
}
157
+ #endif
156
158
157
159
static const rb_data_type_t rb_mysql_result_type = {
158
160
"rb_mysql_result" ,
Original file line number Diff line number Diff line change @@ -33,12 +33,14 @@ static size_t rb_mysql_stmt_memsize(const void * ptr) {
33
33
return sizeof (* stmt_wrapper );
34
34
}
35
35
36
+ #ifdef HAVE_RB_GC_MARK_MOVABLE
36
37
static void rb_mysql_stmt_compact (void * ptr ) {
37
38
mysql_stmt_wrapper * stmt_wrapper = ptr ;
38
39
if (!stmt_wrapper ) return ;
39
40
40
41
rb_mysql2_gc_location (stmt_wrapper -> client );
41
42
}
43
+ #endif
42
44
43
45
static const rb_data_type_t rb_mysql_statement_type = {
44
46
"rb_mysql_statement" ,
You can’t perform that action at this time.
0 commit comments