System definitions

I working out an template for cross-platform SDL:

#ifdef WIN32
#include <windows.h>
#else
#include <stdio.h>
#else
// What should I include for Mac OS X?
#endif
#include <SDL.h>
-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: text/enriched
Size: 442 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20040227/9d3b22a0/attachment.bin

I working out an template for cross-platform SDL:

#ifdef WIN32
#include <windows.h>
#else
#include <stdio.h>
#else
// What should I include for Mac OS X?
#endif
#include <SDL.h>

You shouldn’t need to include any headers besides SDL.h unless you
use a specific API that SDL doesn’t provide.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

I working out an template for cross-platform SDL:

#ifdef WIN32
#include <windows.h>
#else
#include <stdio.h>
#else
// What should I include for Mac OS X?
#endif
#include <SDL.h>

You shouldn’t need to include any headers besides SDL.h unless you
use a specific API that SDL doesn’t provide.

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Pardon, I wasn’t descriptive enough. I meant SDL and OpenGL. Even then
Mac OS X still uses <SDL/SDL.h> or "SDL.h for including SDL."On Feb 27, 2004, at 11:52 PM, Sam Lantinga wrote:

Pardon, I wasn’t descriptive enough. I meant SDL and OpenGL. Even then
Mac OS X still uses <SDL/SDL.h> or “SDL.h for including SDL.”

Do this:

#include “SDL.h”
#include “SDL_opengl.h”

See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

Never even saw it before. Thanks!