Open roypat opened 1 year ago
I think https://github.com/rust-lang/rust-bindgen/pull/2561 doesn't strictly fix this but it is a step in that direction iiuc (cc @reitermarkus).
If that's the case maybe this is a good enough reason to do this change, what do you think @emilio?
No, https://github.com/rust-lang/rust-bindgen/pull/2561 doesn't fix this, but https://github.com/rust-lang/rust-bindgen/pull/2369 which depends on https://github.com/rust-lang/rust-bindgen/pull/2561 will fix it.
Input C/C++ Header
Bindgen Invocation
Actual Results
Expected Results
I expected
Both gcc and clang accept these kind of "out of order" definitions (as counter-intuitive as it is), and the linux kernel makes use of this in
kvm.h
, which is how we discovered this issue in https://github.com/rust-vmm/kvm-bindings/pull/89