summaryrefslogtreecommitdiff
path: root/c/workaround.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-04-14c: add a workaround for SQLITE_TRANSIENT being mistranslatedGravatar Vincent Rischmann1-0/+5
See https://github.com/ziglang/zig/issues/15893 zig's translate-c creates an invalid type for SQLITE_TRANSIENT on some architectures (aarch64, riscv64 and others). We can work around this by making a C function that returns -1 cast to the proper destructor type and use that from zig (thanks https://github.com/Cloudef for mentioning this in this comment: https://github.com/ziglang/zig/issues/15893#issuecomment-1925092582)