Skip to content

Commit 3373c30

Browse files
committed
fix linux compiling
1 parent f7bc1f4 commit 3373c30

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

easy_sqlite3.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Package
22

3-
version = "0.1.3"
3+
version = "0.1.4"
44
author = "CodeHz"
55
description = "Yet another SQLite wrapper for Nim"
66
license = "MIT"

src/easy_sqlite3/bindings.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ when not defined(bundled_sqlite3):
2121
f[4].add ident "importc"
2222
f
2323
else:
24+
from std/strutils import replace
2425
{.compile(
2526
"sqlite3.c",
2627
"""
@@ -33,7 +34,7 @@ else:
3334
-DSQLITE_OMIT_DEPRECATED=1
3435
-DSQLITE_ENABLE_MATH_FUNCTIONS=1
3536
-DSQLITE_DQS=0
36-
"""
37+
""".replace('\n', ' ')
3738
).}
3839
macro sqlite3linkage(f: untyped) =
3940
if f[4].kind == nnkEmpty:

0 commit comments

Comments
 (0)