<!-- Thanks for filing a bindgen issue! We appreciate it :-) --> ### Input C/C++ Header ```C++ // Comment out this to turn *mut b -> *const b in generated Rust code. #define BUG #if !defined(BUG) struct b; #endif struct a { const struct b *x; }; ``` ### Bindgen Invocation ``` $ bindgen input.h --no-layout-tests ``` ### Actual Results ```rust /* automatically generated by rust-bindgen */ #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct a { pub x: *mut b, } #[repr(C)] #[derive(Debug, Copy, Clone)] pub struct b { pub _address: u8, } ``` ### Expected Results The struct member becomes const/mut depending on if it's defined or not.