Skip to content
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

Replace empty #[repr(C)] structs with c_void wrappers. #445

Merged
merged 1 commit into from
Aug 3, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sdl2-sys/src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ pub const SDL_FLIP_VERTICAL : SDL_RendererFlip = 0x00000002;

#[allow(missing_copy_implementations)]
#[repr(C)]
pub struct SDL_Renderer;
pub struct SDL_Renderer(c_void);
#[allow(missing_copy_implementations)]
#[repr(C)]
pub struct SDL_Texture;
pub struct SDL_Texture(c_void);

//SDL_blendmode.h
pub type SDL_BlendMode = c_int;
Expand Down
2 changes: 1 addition & 1 deletion sdl2-sys/src/surface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub const SDL_DONTFREE: SDL_SurfaceFlag = 0x00000004;
//SDL_surface.h
#[allow(missing_copy_implementations)]
#[repr(C)]
pub struct SDL_BlitMap;
pub struct SDL_BlitMap(c_void);

#[allow(missing_copy_implementations)]
#[repr(C)]
Expand Down
2 changes: 1 addition & 1 deletion sdl2-sys/src/video.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub type SDL_bool = c_int;
//SDL_video.h
#[allow(missing_copy_implementations)]
#[repr(C)]
pub struct SDL_Window;
pub struct SDL_Window(c_void);

#[allow(missing_copy_implementations)]
#[repr(C)]
Expand Down