Commit 42903c7
committed
Fix build: Add missing include for C
Unlike C++, `bool` is not a built-in type in C, so requires the
`<stdbool.h>` header.
Fxes a build-error:
```
./c_api/pixel_format.h:37:1: error: unknown type name 'bool'
thread 'main' (165738) panicked at ~/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libcamera-sys-0.6.0/build.rs:76:39:
Unable to generate bindings: ClangDiagnostic("./c_api/pixel_format.h:37:1: error: unknown type name 'bool'\n")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
Signed-off-by: Henner Zeller <h.zeller@acm.org>bool type.1 parent 419e4b1 commit 42903c7
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments