Skip to content

Commit 42903c7

Browse files
committed
Fix build: Add missing include for C bool type.
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>
1 parent 419e4b1 commit 42903c7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

libcamera-sys/c_api/pixel_format.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#ifndef __LIBCAMERA_C_PIXEL_FORMAT__
22
#define __LIBCAMERA_C_PIXEL_FORMAT__
33

4+
#include <stdbool.h>
45
#include <stddef.h>
56
#include <stdint.h>
67

0 commit comments

Comments
 (0)