Skip to content

Commit ed4f0e7

Browse files
authored
Merge pull request #1 from RockfordWei/master
migrating to mysql 8
2 parents afec636 + 58baec6 commit ed4f0e7

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

module.modulemap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module mysqlclient {
2-
header "/usr/local/include/mysql/mysql.h"
2+
header "mysql_osx.h"
33
link "mysqlclient"
44
export *
55
}

mysql_osx.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#ifndef __PERFECT_MYSQL_OSX__
2+
#define __PERFECT_MYSQL_OSX__
3+
#include "/usr/local/include/mysql/mysql.h"
4+
5+
#if LIBMYSQL_VERSION_ID > 80000
6+
typedef char my_bool;
7+
#endif
8+
9+
#endif

0 commit comments

Comments
 (0)