Skip to content

Commit 063f4b2

Browse files
committed
Merge pull request #678 from jconroy77/no_ver_check
Only do library version check in Windows environment
2 parents a0a9e4e + 860bc79 commit 063f4b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/mysql2/client.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,6 +1215,7 @@ static VALUE rb_mysql_client_prepare_statement(VALUE self, VALUE sql) {
12151215
}
12161216

12171217
void init_mysql2_client() {
1218+
#ifdef _WIN32
12181219
/* verify the libmysql we're about to use was the version we were built against
12191220
https://github.com/luislavena/mysql-gem/commit/a600a9c459597da0712f70f43736e24b484f8a99 */
12201221
int i;
@@ -1232,6 +1233,7 @@ void init_mysql2_client() {
12321233
return;
12331234
}
12341235
}
1236+
#endif
12351237

12361238
/* Initializing mysql library, so different threads could call Client.new */
12371239
/* without race condition in the library */

0 commit comments

Comments
 (0)