Skip to content

Commit

Permalink
Merge pull request #445 from bfops/master
Browse files Browse the repository at this point in the history
Replace empty #[repr(C)] structs with c_void wrappers.
  • Loading branch information
AngryLawyer committed Aug 3, 2015
2 parents 9ffbfc1 + 8846911 commit d5a0d1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit d5a0d1d

Please sign in to comment.