From 88469115835c54ac110b66cf3b37da1ab411b53b Mon Sep 17 00:00:00 2001 From: Zeke Foppa Date: Fri, 31 Jul 2015 19:30:48 -0400 Subject: [PATCH] Replace empty #[repr(C)] structs with c_void wrappers. --- sdl2-sys/src/render.rs | 4 ++-- sdl2-sys/src/surface.rs | 2 +- sdl2-sys/src/video.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sdl2-sys/src/render.rs b/sdl2-sys/src/render.rs index 5f4ac279..c3396250 100644 --- a/sdl2-sys/src/render.rs +++ b/sdl2-sys/src/render.rs @@ -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; diff --git a/sdl2-sys/src/surface.rs b/sdl2-sys/src/surface.rs index cde71ca4..b3705800 100644 --- a/sdl2-sys/src/surface.rs +++ b/sdl2-sys/src/surface.rs @@ -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)] diff --git a/sdl2-sys/src/video.rs b/sdl2-sys/src/video.rs index e2ccb2a4..b89ec9e1 100644 --- a/sdl2-sys/src/video.rs +++ b/sdl2-sys/src/video.rs @@ -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)]