From 04f5d5c96a9d35d067745db7c73baf3b062b9076 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Mon, 17 Feb 2020 17:16:01 +0100 Subject: [PATCH] add include dir --- sqlite3_abi.nim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sqlite3_abi.nim b/sqlite3_abi.nim index 54e22bc..eb40d7e 100644 --- a/sqlite3_abi.nim +++ b/sqlite3_abi.nim @@ -4,4 +4,8 @@ import sqlite3_gen export sqlite3_gen +# Needed on windows +from os import splitPath +{.passC:"-I" & currentSourcePath().splitPath.head .} + proc sqlite3_bind_blob*(pstmt: ptr sqlite3_stmt, param: cint, value: pointer, n: cint, dispose: proc (v: pointer) {.cdecl.}): cint {.importc, header: "sqlite3.h", cdecl.}