File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -750,8 +750,8 @@ static VALUE rb_mysql_client_info(VALUE self) {
750
750
#ifdef HAVE_RUBY_ENCODING_H
751
751
rb_encoding * default_internal_enc ;
752
752
rb_encoding * conn_enc ;
753
- #endif
754
753
GET_CLIENT (self );
754
+ #endif
755
755
version = rb_hash_new ();
756
756
757
757
#ifdef HAVE_RUBY_ENCODING_H
@@ -1050,18 +1050,18 @@ static VALUE set_write_timeout(VALUE self, VALUE value) {
1050
1050
1051
1051
static VALUE set_charset_name (VALUE self , VALUE value ) {
1052
1052
char * charset_name ;
1053
+ #ifdef HAVE_RUBY_ENCODING_H
1053
1054
size_t charset_name_len ;
1054
1055
const struct mysql2_mysql_enc_name_to_rb_map * mysql2rb ;
1055
- #ifdef HAVE_RUBY_ENCODING_H
1056
1056
rb_encoding * enc ;
1057
1057
VALUE rb_enc ;
1058
1058
#endif
1059
1059
GET_CLIENT (self );
1060
1060
1061
1061
charset_name = RSTRING_PTR (value );
1062
- charset_name_len = RSTRING_LEN (value );
1063
1062
1064
1063
#ifdef HAVE_RUBY_ENCODING_H
1064
+ charset_name_len = RSTRING_LEN (value );
1065
1065
mysql2rb = mysql2_mysql_enc_name_to_rb (charset_name , charset_name_len );
1066
1066
if (mysql2rb == NULL || mysql2rb -> rb_name == NULL ) {
1067
1067
VALUE inspect = rb_inspect (value );
Original file line number Diff line number Diff line change 20
20
typedef void rb_unblock_function_t (void * );
21
21
static void *
22
22
rb_thread_call_without_gvl (
23
- void * (* func ), void * data1 ,
23
+ void * (* func )( void * ), void * data1 ,
24
24
RB_MYSQL_UNUSED rb_unblock_function_t * ubf ,
25
25
RB_MYSQL_UNUSED void * data2 )
26
26
{
You can’t perform that action at this time.
0 commit comments