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.
This commit is contained in:
Sam Lantinga 2013-09-05 07:02:27 -07:00
parent cefffd618f
commit 2afbd773b8
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ extern "C" {
*
* \sa SDL_EnclosePoints
*/
typedef struct
typedef struct SDL_Point
{
int x;
int y;