Add osx support for ODBC driver when linking libodbc (#21291)

Co-authored-by: Clay Sweetser <Varriount@users.noreply.github.com>
This commit is contained in:
ghais
2023-01-24 09:52:20 -05:00
committed by GitHub
parent 7a43d00a64
commit 2c24ac1849

View File

@@ -14,6 +14,9 @@ when not defined(ODBCVER):
when defined(windows):
{.push callconv: stdcall.}
const odbclib = "odbc32.dll"
elif defined(macosx):
{.push callconv: stdcall.}
const odbclib = "libodbc.dylib"
else:
{.push callconv: cdecl.}
const odbclib = "libodbc.so"