Mercurial > sdl-ios-xcode
diff include/SDL_main.h @ 1402:d910939febfa
Use consistent identifiers for the various platforms we support.
Make sure every source file includes SDL_config.h, so the proper system
headers are chosen.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 21 Feb 2006 08:46:50 +0000 |
parents | 67114343400d |
children | 3c45c578d480 |
line wrap: on
line diff
--- a/include/SDL_main.h Tue Feb 21 08:34:45 2006 +0000 +++ b/include/SDL_main.h Tue Feb 21 08:46:50 2006 +0000 @@ -27,9 +27,9 @@ /* Redefine main() on Win32 and MacOS so that it is called by winmain.c */ -#if defined(WIN32) || defined(_WIN32) || \ +#if defined(__WIN32__) || \ (defined(__MWERKS__) && !defined(__BEOS__)) || \ - defined(macintosh) || defined(__APPLE__) || \ + defined(__MACOS__) || defined(__MACOSX__) || \ defined(__SYMBIAN32__) || defined(QWS) #ifdef __cplusplus @@ -54,7 +54,7 @@ /* From the SDL library code -- needed for registering the app on Win32 */ -#if defined(WIN32) +#ifdef __WIN32__ #include "begin_code.h" #ifdef __cplusplus @@ -74,7 +74,7 @@ #endif /* From the SDL library code -- needed for registering QuickDraw on MacOS */ -#if defined(macintosh) +#if defined(__MACOS__) #include "begin_code.h" #ifdef __cplusplus