# SDL: SDL\_render.h: Remove unnecessary \`struct x;\` before \`typedef struct x x;\`.

**URL:** <https://discourse.libsdl.org/t/sdl-sdl-render-h-remove-unnecessary-struct-x-before-typedef-struct-x-x/51253>\
**Category:** SDL Commits\
**Created:** [May 16, 2024, 4:24pm UTC](https://discourse.libsdl.org/t/sdl-sdl-render-h-remove-unnecessary-struct-x-before-typedef-struct-x-x/51253 "2024-05-16T16:24:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [May 16, 2024, 4:24pm UTC](https://discourse.libsdl.org/t/sdl-sdl-render-h-remove-unnecessary-struct-x-before-typedef-struct-x-x/51253/1 "2024-05-16T16:24:02Z")

</div>

> <https://github.com/libsdl-org/SDL/commit/253c9172962fdaec7afdbfb98fdcc448f7234fef>

```diff
From 253c9172962fdaec7afdbfb98fdcc448f7234fef Mon Sep 17 00:00:00 2001
From: "Ryan C. Gordon" <[EMAIL REDACTED]>
Date: Thu, 16 May 2024 12:21:14 -0400
Subject: [PATCH] SDL_render.h: Remove unnecessary `struct x;` before `typedef
 struct x x;`.

---
 include/SDL3/SDL_render.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/SDL3/SDL_render.h b/include/SDL3/SDL_render.h
index 137a3f1981de5..ceff17815d4cc 100644
--- a/include/SDL3/SDL_render.h
+++ b/include/SDL3/SDL_render.h
@@ -125,7 +125,6 @@ typedef enum SDL_RendererLogicalPresentation
  *
  * \since This struct is available since SDL 3.0.0.
  */
-struct SDL_Renderer;
 typedef struct SDL_Renderer SDL_Renderer;
 
 /**
@@ -133,7 +132,6 @@ typedef struct SDL_Renderer SDL_Renderer;
  *
  * \since This struct is available since SDL 3.0.0.
  */
-struct SDL_Texture;
 typedef struct SDL_Texture SDL_Texture;
 
 /* Function prototypes */

```
