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 183

Summary: [patch] "SDL_opengl.h" for __MACOS__
Product: SDL Reporter: Anders F Bj <afb>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: max
Version: HG 1.2   
Hardware: PowerPC   
OS: Mac OS Classic   
Attachments: SDL12-opengl-mac.patch

Description Anders F Bj 2006-03-26 07:16:13 UTC
When switching to "UNIX-style paths" as needed for the new includes,
including <GL/gl.h> and <GL/glu.h> doesn't work anymore on Mac OS...

The two headers are really located in the OpenGL SDK 1.2 CFM like this:
OpenGL:Headers:gl.h
OpenGL:Headers:glu.h

There are also some compat copies, that *used* to work with Mac paths:
OpenGL:Headers:GL/gl.h
OpenGL:Headers:GL/glu.h

The easiest fix is to make SDL_opengl.h include the proper header names,
by adding a special case for the MACOS platform in addition to the MACOSX
Comment 1 Anders F Bj 2006-03-26 07:17:09 UTC
Created attachment 95 [details]
SDL12-opengl-mac.patch
Comment 2 Sam Lantinga 2006-04-12 10:36:58 UTC
This is in CVS, thanks!