mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
[rust] use deprecated blacklist_function; #1339
This commit is contained in:
parent
08a3edb71f
commit
8209bc6841
@ -16,6 +16,10 @@ fn main() {
|
|||||||
|
|
||||||
// The bindgen::Builder is the main entry point to bindgen, and lets you
|
// The bindgen::Builder is the main entry point to bindgen, and lets you
|
||||||
// build up options for the resulting bindings.
|
// build up options for the resulting bindings.
|
||||||
|
//
|
||||||
|
// allow .blacklist_function instead of .blocklist_function for now,
|
||||||
|
// until we update bindgen to >= 0.58.
|
||||||
|
#[allow(deprecated)]
|
||||||
let mut builder = bindgen::Builder::default()
|
let mut builder = bindgen::Builder::default()
|
||||||
.use_core()
|
.use_core()
|
||||||
.ctypes_prefix("cty")
|
.ctypes_prefix("cty")
|
||||||
@ -27,8 +31,8 @@ fn main() {
|
|||||||
.clang_arg("-fretain-comments-from-system-headers")
|
.clang_arg("-fretain-comments-from-system-headers")
|
||||||
.clang_arg("-fparse-all-comments")
|
.clang_arg("-fparse-all-comments")
|
||||||
// Remove warnings about improper_ctypes
|
// Remove warnings about improper_ctypes
|
||||||
.blocklist_function("strtold")
|
.blacklist_function("strtold")
|
||||||
.blocklist_function("wcstold")
|
.blacklist_function("wcstold")
|
||||||
// Don't derive the Copy trait on types with destructors.
|
// Don't derive the Copy trait on types with destructors.
|
||||||
.no_copy("ncdirect")
|
.no_copy("ncdirect")
|
||||||
.no_copy("ncdplot")
|
.no_copy("ncdplot")
|
||||||
|
Loading…
Reference in New Issue
Block a user