Skip to content

Commit

Permalink
Fixed bug 2081 - Add name to SDL_Point structure
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
slouken committed Sep 5, 2013
1 parent cefffd6 commit 2afbd77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/SDL_rect.h
Expand Up @@ -44,7 +44,7 @@ extern "C" {
*
* \sa SDL_EnclosePoints
*/
typedef struct
typedef struct SDL_Point
{
int x;
int y;
Expand Down

0 comments on commit 2afbd77

Please sign in to comment.