Skip to content

Should we unique c_void? #826

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tesuji opened this issue Oct 28, 2019 · 3 comments
Closed

Should we unique c_void? #826

tesuji opened this issue Oct 28, 2019 · 3 comments

Comments

@tesuji
Copy link

tesuji commented Oct 28, 2019

There is core and std c_void type: https://doc.rust-lang.org/nightly/core/ffi/enum.c_void.html
Could we replace that in

winapi-rs/src/lib.rs

Lines 34 to 37 in 02f3e37

#[cfg(feature = "std")]
pub use std::os::raw::c_void;
#[cfg(not(feature = "std"))]
pub enum c_void {}

@retep998
Copy link
Owner

If you're asking whether winapi could use c_void from core, that will happen in winapi 0.4.

Otherwise, I'm not sure what you're asking.

@tesuji
Copy link
Author

tesuji commented Oct 29, 2019

Thanks. I opened rust-lang/rust#65922 because people
cannot use std::ffi::c_void before Rust 1.30.0

@tesuji tesuji closed this as completed Oct 29, 2019
@sollyucko
Copy link

#771

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants