I solved this problem two ways in my days of Mac OS X developing before
Apple stabbed the FOSS community in the backwhen and how did this happen?
Solution A) Create your own sdl-config. It’s really simple.
Solution B) Write a little more code to include the necessary headers.
Here’s how I accomplished that:#ifdef APPLE
include <SDL/SDL.h>
include <OpenGL/GL.h>
#else
include <SDL.h>
include <GL/gl.h>
#endif
Of course that solution is just from memory of many years ago, so it has a
few rough edges. When you or someone else tries to build your package on
another system, it quickly becomes apparent what the problem is and a fix is
usually easy to implement, so the absence of a real standard portable
one-liner isn’t that critical
as mentioned by others, #include “SDL.h” will work for most cases on most
platforms.
bye
VittorioOn Thu, Aug 5, 2010 at 12:45 AM, Donny Viszneki <donny.viszneki at gmail.com>wrote: