Skip to content

Commit

Permalink
Do not include stdarg.h automatically to fix #108 and fix #53
Browse files Browse the repository at this point in the history
  • Loading branch information
fzyzcjy committed Oct 22, 2021
1 parent 00a2b6c commit 11f1f3e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Add `--skip-add-mod-to-lib` flag.
* Allow Rust input file in directories besides root directory of the crate.
* Warn when command's output seems to indicate errors.
* Do not include `stdarg.h` automatically to fix #108 and fix #53.

## 1.2.0

Expand Down
5 changes: 5 additions & 0 deletions frb_codegen/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ fn cbindgen(rust_crate_dir: &str, c_output_path: &str, c_struct_names: Vec<Strin
let config = format!(
r#"
language = "C"
# do NOT include "stdarg.h", see #108 and #53
sys_includes = ["stdbool.h", "stdint.h", "stdlib.h"]
no_includes = true
[export]
include = [{}]
"#,
Expand Down
1 change: 0 additions & 1 deletion frb_example/with_flutter/ios/Runner/bridge_generated.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
Expand Down

0 comments on commit 11f1f3e

Please sign in to comment.