diff --git a/c/Cargo.toml b/c/Cargo.toml index e7a829c..14cd1ab 100644 --- a/c/Cargo.toml +++ b/c/Cargo.toml @@ -19,6 +19,6 @@ path = "src/lib.rs" crate-type = ["rlib"] [build-dependencies] -bindgen = "^0.69" +bindgen = "^0.72" cc = "^1.0" pkg-config = "^0.3" diff --git a/c/build.rs b/c/build.rs index c482521..be71470 100644 --- a/c/build.rs +++ b/c/build.rs @@ -149,7 +149,6 @@ fn main() { ************************ */ let mut bgbuilder = bindgen::Builder::default() .parse_callbacks(Box::new(BwBindgenCallbacks {})) - .clang_arg("-DBW_BINDGEN") .header("src/application.h") .header("src/browser_window.h") .header("src/cookie.h") @@ -405,5 +404,7 @@ fn main() { } impl bindgen::callbacks::ParseCallbacks for BwBindgenCallbacks { - fn item_name(&self, item_name: &str) -> Option { Some("c".to_owned() + item_name) } + fn item_name(&self, item_info: bindgen::callbacks::ItemInfo<'_>) -> Option { + Some("c".to_owned() + item_info.name) + } } diff --git a/c/src/win32.c b/c/src/win32.c index c92afbb..86b0bf1 100644 --- a/c/src/win32.c +++ b/c/src/win32.c @@ -9,7 +9,6 @@ #include #pragma comment(lib, "User32.lib") -#pragma comment(lib, "OleAut32.lib") #ifndef WC_ERR_INVALID_CHARS #define WC_ERR_INVALID_CHARS 0x80