From 7b9650ed1be2d81aa996fd5d9a307266ff28ac3f Mon Sep 17 00:00:00 2001 From: Endre Karlson Date: Sun, 11 Jan 2015 01:04:20 +0100 Subject: [PATCH] Support MySQL on OSX --- lib/wrappers/mysql.nim | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/lib/wrappers/mysql.nim b/lib/wrappers/mysql.nim index 5deceb6e2e..9161f56722 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