Try to fix windows build

This commit is contained in:
gwenn 2023-07-18 17:45:28 +02:00
parent 3742efe24c
commit 856c94063d

View File

@ -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()?;
} }