We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2081

Summary: [PATCH] Add name to SDL_Point structure
Product: SDL Reporter: Dmitry Marakasov <amdmi3>
Component: *don't know*Assignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.1   
Hardware: x86_64   
OS: FreeBSD   
Attachments: Fix

Description Dmitry Marakasov 2013-09-02 03:26:21 UTC
Created attachment 1316 [details]
Fix

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. The attached patch fixes this.
Comment 1 Sam Lantinga 2013-09-05 14:02:52 UTC
Fixed, thanks!
http://hg.libsdl.org/SDL/rev/384d5ba7ee44