Fixed bug 2081 - Add name to SDL_Point structure
authorSam Lantinga <slouken@libsdl.org>
Thu, 05 Sep 2013 07:02:27 -0700
changeset 7729 384d5ba7ee44
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
--- a/include/SDL_rect.h	Thu Sep 05 06:59:34 2013 -0700
+++ b/include/SDL_rect.h	Thu Sep 05 07:02:27 2013 -0700
@@ -44,7 +44,7 @@
  *
  *  \sa SDL_EnclosePoints
  */
-typedef struct
+typedef struct SDL_Point
 {
     int x;
     int y;