Support MySQL on OSX

This commit is contained in:
Endre Karlson
2015-01-11 01:04:20 +01:00
parent a41b62da97
commit 7b9650ed1b

View File

@@ -10,11 +10,15 @@
{.deadCodeElim: on.}
{.push, callconv: cdecl.}
when defined(Unix):
const
lib = "libmysqlclient.so.(15|16|17|18)"
when defined(Windows):
const
when defined(Unix):
when defined(macosx):
const
lib = "libmysqlclient.(15|16|17[18).dylib"
else:
const
lib = "libmysqlclient.so.(15|16|17|18)"
when defined(Windows):
const
lib = "libmysql.dll"
type
my_bool* = bool