mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-10 15:04:59 +00:00
Support MySQL on OSX
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user