mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-16 20:52:19 +08:00
Try to fix windows build
This commit is contained in:
@@ -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()?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user