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 1100

Summary: Build errors on Mac OSX 10.6 without GLX support
Product: SDL Reporter: sqook
Component: buildAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: minor    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Mac OS X 10.6   
Attachments: Patch which fixes the described bug

Description sqook 2011-01-22 08:23:13 UTC
Created attachment 555 [details]
Patch which fixes the described bug

When building SDL with the following flags, lots of compiler errors result:

SDL_VIDEO_OPENGL_CGL=0
SDL_VIDEO_OPENGL_GLX=0
SDL_VIDEO_DRIVER_X11=0
SDL_VIDEO_RENDER_X11=0

All of these errors are easily fixed by converting some #ifdef's to #if's, and adding #ifndef blocks in the SDL_config_macosx.h file. I have attached a patch to this bug which addresses these issues.

BTW, is it possible to make a pull request of some sort to the main HG repo? That would make it much easier to submit patches to the project.
Comment 1 Sam Lantinga 2011-01-24 17:39:01 UTC
This is fixed, thanks!
http://hg.libsdl.org/SDL/rev/455bc74f7034