We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e014427 commit 0e87ec5Copy full SHA for 0e87ec5
stm32-bindings-gen/src/lib.rs
@@ -16,6 +16,8 @@ const STD_TO_CORE_REPLACEMENTS: &[(&str, &str)] = &[
16
(":: std :: ptr ::", ":: core :: ptr ::"),
17
];
18
19
+const NEWLIB_SHARED_OPAQUES: &[&str] = &["_reent", "__sFILE", "__sFILE64"];
20
+
21
#[derive(Debug, Clone, Copy)]
22
struct BindingSpec {
23
module: &'static str,
@@ -272,6 +274,10 @@ impl Gen {
272
274
builder = builder.clang_arg(*arg);
273
275
}
276
277
+ for ty in NEWLIB_SHARED_OPAQUES {
278
+ builder = builder.opaque_type(ty);
279
+ }
280
281
for arg in arm_sysroot_args() {
282
builder = builder.clang_arg(arg);
283
0 commit comments