Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion c/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
5 changes: 3 additions & 2 deletions c/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -405,5 +404,7 @@ fn main() {
}

impl bindgen::callbacks::ParseCallbacks for BwBindgenCallbacks {
fn item_name(&self, item_name: &str) -> Option<String> { Some("c".to_owned() + item_name) }
fn item_name(&self, item_info: bindgen::callbacks::ItemInfo<'_>) -> Option<String> {
Some("c".to_owned() + item_info.name)
}
}
1 change: 0 additions & 1 deletion c/src/win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <windows.h>

#pragma comment(lib, "User32.lib")
#pragma comment(lib, "OleAut32.lib")

#ifndef WC_ERR_INVALID_CHARS
#define WC_ERR_INVALID_CHARS 0x80
Expand Down