Fixed bug 2081 - Add name to SDL_Point structure
authorSam Lantinga <slouken@libsdl.org>
Thu, 05 Sep 2013 07:02:27 -0700
changeset 7729384d5ba7ee44
parent 7728 800313a3533d
child 7730 e928464b98ec
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
     1.1 --- a/include/SDL_rect.h	Thu Sep 05 06:59:34 2013 -0700
     1.2 +++ b/include/SDL_rect.h	Thu Sep 05 07:02:27 2013 -0700
     1.3 @@ -44,7 +44,7 @@
     1.4   *
     1.5   *  \sa SDL_EnclosePoints
     1.6   */
     1.7 -typedef struct
     1.8 +typedef struct SDL_Point
     1.9  {
    1.10      int x;
    1.11      int y;