From 2afbd773b8307447be7445ff3b28ff13255fa337 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 5 Sep 2013 07:02:27 -0700 Subject: [PATCH] Fixed bug 2081 - Add name to SDL_Point structure Dmitry Marakasov Unlike SDL_Rect (typedef struct SDL_Rect {} SDL_Rect), SDL_Point (typedef struct {} SDL_Point) structure is unnamed. This feels inconsistent and makes it impossible to use forward declaration for SDL_Point, having to include whole SDL_rect.h instead. --- include/SDL_rect.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/SDL_rect.h b/include/SDL_rect.h index c8af7c197a43d..7132e1b4400b1 100644 --- a/include/SDL_rect.h +++ b/include/SDL_rect.h @@ -44,7 +44,7 @@ extern "C" { * * \sa SDL_EnclosePoints */ -typedef struct +typedef struct SDL_Point { int x; int y;