mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Merge pull request #445 from bfops/master
Replace empty #[repr(C)] structs with c_void wrappers.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)]
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user