Merge pull request #445 from bfops/master

Replace empty #[repr(C)] structs with c_void wrappers.
This commit is contained in:
Tony Aldridge
2015-08-03 13:18:33 +01:00
3 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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;
+1 -1
View File
@@ -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)]
+1 -1
View File
@@ -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)]