mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-25 02:21:37 +08:00
Try to fix windows build
This commit is contained in:
parent
3742efe24c
commit
856c94063d
@ -7,7 +7,10 @@ fn main() -> Result<()> {
|
|||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
db.load_extension_enable()?;
|
db.load_extension_enable()?;
|
||||||
|
#[cfg(not(windows))]
|
||||||
db.load_extension("target/debug/examples/libloadable_extension", None)?;
|
db.load_extension("target/debug/examples/libloadable_extension", None)?;
|
||||||
|
#[cfg(windows)]
|
||||||
|
db.load_extension("target/debug/examples/loadable_extension", None)?;
|
||||||
db.load_extension_disable()?;
|
db.load_extension_disable()?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user