Hi all. I'm working on an issue with ffmpeg-next and ffmpeg-sys-next, which are rust bindings to ffmpeg. I'm seeing build errors for former crate on macos stemming from missing constants in the generated bindings. Curiously, linux does not seem to have this issue. I whittled down a smaller test case I believe represents the problem, however, both Linux and macos bindgen invocations are now producing the same results. I'm a bit at loss, can anyone advise if the behavior I'm seeing from bindgen makes sense?
Input C/C++ Header
enum AVChannel {
AV_CHAN_NONE = -1,
AV_CHAN_FRONT_LEFT,
};
#define AV_CH_FRONT_LEFT (1ULL << AV_CHAN_FRONT_LEFT )
Bindgen Invocation
Actual Results
/* automatically generated by rust-bindgen 0.59.2 */
pub const AVChannel_AV_CHAN_NONE: AVChannel = -1;
pub const AVChannel_AV_CHAN_FRONT_LEFT: AVChannel = 0;
pub type AVChannel = ::std::os::raw::c_int;
Expected Results
I'd expect to see a constant for AV_CH_FRONT_LEFT.