From ba1fdf24c91ae7a562d258fff2f81a2c401e5fa4 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Tue, 28 May 2024 11:00:02 +0300 Subject: [PATCH] fix type redefinition error after commit dfe4445214 In file included from /tmp/SDL3/src/events/SDL_events_c.h:28, from /tmp/SDL3/src/SDL.c:46: /tmp/SDL3/src/events/../video/SDL_sysvideo.h:31: error: redefinition of typedef 'SDL_VideoDevice' /tmp/SDL3/src/video/SDL_video_c.h:27: note: previous declaration of 'SDL_VideoDevice' was here --- src/video/SDL_video_c.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/SDL_video_c.h b/src/video/SDL_video_c.h index 3e8a694443..2251ce3053 100644 --- a/src/video/SDL_video_c.h +++ b/src/video/SDL_video_c.h @@ -24,7 +24,7 @@ #include "SDL_internal.h" -typedef struct SDL_VideoDevice SDL_VideoDevice; +struct SDL_VideoDevice; /** * Initialize the video subsystem, optionally specifying a video driver. @@ -57,7 +57,7 @@ extern int SDL_VideoInit(const char *driver_name); */ extern void SDL_VideoQuit(void); -extern int SDL_SetWindowTextureVSync(SDL_VideoDevice *_this, SDL_Window *window, int vsync); +extern int SDL_SetWindowTextureVSync(struct SDL_VideoDevice *_this, SDL_Window *window, int vsync); extern int SDL_ReadSurfacePixel(SDL_Surface *surface, int x, int y, Uint8 *r, Uint8 *g, Uint8 *b, Uint8 *a);