rust-bindgen
rust-bindgen copied to clipboard
Constants like UINT64_MAX not recognized, even with clang_macro_fallback
Although #1636 was fixed, using builder.clang_macro_fallback() does not work with macros that expand to values that do not fit in a u32. It is potentially related to #2618.
// header.h
#include <stdint.h>
#define FOO (UINT32_MAX)
#define BAR (UINT32_MAX)
// bindings.rs
pub const FOO: u32 = 4294967295;