diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-01-11 01:07:56 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-01-11 01:07:56 +0100 |
commit | 4c294936284ba3ad1d14e2518ef33d8f5746e3cb (patch) | |
tree | 9f9034775d7ab8c2221aaf1ab47e194535c940fc | |
parent | a41b62da970f9795cc4e8bc4fecbdb386dc18d80 (diff) | |
parent | 7b9650ed1be2d81aa996fd5d9a307266ff28ac3f (diff) | |
download | Nim-4c294936284ba3ad1d14e2518ef33d8f5746e3cb.tar.gz |
Merge pull request #1926 from ekarlso/mysql-osx
Support MySQL on OSX
-rw-r--r-- | lib/wrappers/mysql.nim | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/wrappers/mysql.nim b/lib/wrappers/mysql.nim index 5deceb6e2..9161f5672 100644 --- a/lib/wrappers/mysql.nim +++ b/lib/wrappers/mysql.nim @@ -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 |