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 690 - SDL_image.h can't find SDL headers automagically
Summary: SDL_image.h can't find SDL headers automagically
Status: RESOLVED WONTFIX
Alias: None
Product: SDL_image
Classification: Unclassified
Component: misc (show other bugs)
Version: unspecified
Hardware: PowerPC Mac OS X (All)
: P2 minor
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-03 11:31 UTC by Nicolas Simonds
Modified: 2009-09-26 01:37 UTC (History)
0 users

See Also:


Attachments
SDL_image.h.patch (453 bytes, patch)
2009-02-03 11:31 UTC, Nicolas Simonds
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolas Simonds 2009-02-03 11:31:50 UTC
Created attachment 293 [details]
SDL_image.h.patch

Apple's gcc gives you this bit of syntactic sugar for free; if you include headers in the form:

#include <Some_Framework/some_header_file.h>

...the compiler will look in any relevant frameworks as well as the defined INCLUDE_PATH.  If the SDL_image.framework headers are modified to use this style, it requires much less tinkering on the part of developers to get the think to compile/link.

The attached patch throws in some good vibes for us Apple folk, while hopefully staying out of everyone else's way.
Comment 1 Sam Lantinga 2009-09-26 01:37:57 UTC
This is a larger discussion about expected usage of SDL headers.
This will be evaluated with the SDL 1.3 release.